Add compatibility with templates from script-runtime...
and add script-runtime to the compilation classpath by default
This commit is contained in:
+1
@@ -134,6 +134,7 @@ class KJvmCompilerImpl(val hostConfiguration: ScriptingHostConfiguration) : KJvm
|
||||
}
|
||||
// TODO: implement logic similar to compiler's -no-stdlib (and -no-reflect?)
|
||||
addRoot("kotlin.stdlib", KotlinJars.stdlib)
|
||||
KotlinJars.scriptRuntimeOrNull?.let { addRoot("kotlin.script.runtime", it) }
|
||||
|
||||
put(CommonConfigurationKeys.MODULE_NAME, "kotlin-script") // TODO" take meaningful and valid name from somewhere
|
||||
languageVersionSettings = LanguageVersionSettingsImpl(
|
||||
|
||||
Reference in New Issue
Block a user