Kotlin / kotlin-script-examples

Examples of Kotlin Scripts and usages of the Kotlin Scripting API
Apache License 2.0
295 stars 42 forks source link

KotlinJsr223DefaultScriptEngineFactory not needed anymore? #11

Open sschuberth opened 2 years ago

sschuberth commented 2 years ago

Sorry for this question-like type of issue, but when reading though

https://github.com/Kotlin/kotlin-script-examples/blob/d48abed5341ef7cc060a511eb862e06f563a2310/jvm/jsr223/jsr223-simple/src/main/kotlin/org/jetbrains/kotlin/script/examples/jvm/jsr223/simple/repl.kt#L11

I was wondering why there is no META-INF/services/javax.script.ScriptEngineFactory file anymore which contains the string kotlin.script.experimental.jsr223.KotlinJsr223DefaultScriptEngineFactory. Is this not needed anymore? Since when? Any official docs on that?

QazCetelic commented 2 years ago

I think they replaced it with a new method since version 1.4, but I'm not completely sure.