diff --git a/build.gradle.kts b/build.gradle.kts index f0016de2..a339f1bc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,15 +25,15 @@ repositories { val kotlin_version = "1.9.20" val jetty_version = "11.0.18" val slf4j_version = "2.0.9" -val skyenet_version = "1.0.38" +val skyenet_version = "1.0.39" dependencies { - implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.35") + implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.36") implementation(group = "com.simiacryptus.skyenet", name = "core", version = skyenet_version) implementation(group = "com.simiacryptus.skyenet", name = "webui", version = skyenet_version) - implementation("org.apache.httpcomponents.client5:httpclient5:5.2.1") + implementation(group = "org.apache.httpcomponents.client5", name = "httpclient5", version = "5.2.1") implementation(group = "org.eclipse.jetty", name = "jetty-server", version = jetty_version) implementation(group = "org.eclipse.jetty", name = "jetty-servlet", version = jetty_version) implementation(group = "org.eclipse.jetty", name = "jetty-annotations", version = jetty_version) diff --git a/src/main/kotlin/com/simiacryptus/skyenet/heart/WeakGroovyInterpreter.kt b/src/main/kotlin/com/simiacryptus/skyenet/heart/WeakGroovyInterpreter.kt index 5b3d734c..86750e2f 100644 --- a/src/main/kotlin/com/simiacryptus/skyenet/heart/WeakGroovyInterpreter.kt +++ b/src/main/kotlin/com/simiacryptus/skyenet/heart/WeakGroovyInterpreter.kt @@ -2,11 +2,12 @@ package com.simiacryptus.skyenet.heart -import com.simiacryptus.skyenet.core.Heart +import com.simiacryptus.skyenet.core.Interpreter import java.lang.reflect.Method @Suppress("unused") -open class WeakGroovyInterpreter(defs: java.util.Map) : Heart { +open class WeakGroovyInterpreter(val defs: java.util.Map) : Interpreter { + override fun symbols() = defs as Map private val shell: Any private val parseMethod: Method diff --git a/src/main/kotlin/com/simiacryptus/skyenet/heart/WeakKotlinInterpreter.kt b/src/main/kotlin/com/simiacryptus/skyenet/heart/WeakKotlinInterpreter.kt index 7c5f1e7a..10249ae1 100644 --- a/src/main/kotlin/com/simiacryptus/skyenet/heart/WeakKotlinInterpreter.kt +++ b/src/main/kotlin/com/simiacryptus/skyenet/heart/WeakKotlinInterpreter.kt @@ -1,12 +1,13 @@ package com.simiacryptus.skyenet.heart -import com.simiacryptus.skyenet.core.Heart +import com.simiacryptus.skyenet.core.Interpreter import java.lang.reflect.Method @Suppress("unused") open class WeakKotlinInterpreter( - defs: Map = mapOf(), -) : Heart { + val defs: Map = mapOf(), +) : Interpreter { + override fun symbols() = defs as Map private val engine: Any