In Kotlin 1.3.31, how can I use the script engine?...
# scripting
m
In Kotlin 1.3.31, how can I use the script engine? It was working fine in 1.3.21, but after I updated to 1.3.31 the engine says
warning: default scripting plugin is disabled: The provided plugin org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar is not compatible with this version of compiler
and trying to execute anything throws an exception.
Figured it out, I removed all script/compiler/etc dependencies from the
build.gradle.kts
and only kept
Copy code
compile(kotlin("script-util"))
	compile(kotlin("compiler"))
	compile(kotlin("scripting-compiler"))
Now it works 🙂
e
Hello, sorry for resuming this thread, but I got the very same error. Which dependencies did you remove exactly? I have these ones:
Copy code
implementation(kotlin("scripting-common", embeddedKotlinVersion))
implementation(kotlin("scripting-dependencies", embeddedKotlinVersion))
implementation(kotlin("scripting-jvm", embeddedKotlinVersion))
implementation(kotlin("scripting-jvm-host", embeddedKotlinVersion))