Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use version 4.2.3 on Dockerfile #419

Open
devaughnsaxa opened this issue Feb 26, 2024 · 0 comments
Open

Use version 4.2.3 on Dockerfile #419

devaughnsaxa opened this issue Feb 26, 2024 · 0 comments

Comments

@devaughnsaxa
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant