-
Notifications
You must be signed in to change notification settings - Fork 124
Description
I can see that the kscript version 4.2.3 is missing on the Dockerfile https://github.com/kscripting/kscript/blob/master/misc/Dockerfile.
This makes it unable to run scripts with modules written in Kotlin with newer versions.
I get this error (shortened for brevity)
... [kscript] [ERROR] Stderr : 'error: incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors[nl]/root/.m2/repository/io/javalin/javalin/6.1.2/javalin-6.1.2.jar!/META-INF/javalin.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.[nl]/root/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.9.22/kotlin-stdlib-1.9.22.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.[nl]/root/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.9.22/kotlin-stdlib-1.9.22.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.[nl]/root/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.9.22/kotlin-stdlib-1.9.22.jar!/META-INF/kotlin-stdlib.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.[nl]/root/.cache/kscript/jar_c5304d52f1a0c0ba7787a3782f2f7d6e/Scriplet.kts:4:24: error: class 'io.javalin.http.Context' was compiled with an incompatible version of Kotlin...
Is that something you could fix? I would really appreciate that.
Thanks in advance and have a nice day :)