File tree 1 file changed +6
-0
lines changed
libraries/tools/kotlin-maven-plugin/src/main/java/org/jetbrains/kotlin/maven 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 62
62
import java .util .List ;
63
63
import java .util .stream .Collectors ;
64
64
65
+ import static org .jetbrains .kotlin .cli .jvm .JvmArgumentsKt .configureJdkHomeFromSystemProperty ;
66
+
65
67
/**
66
68
* Allows to execute kotlin script files during the build process.
67
69
* You can specify script file or inline script to be executed.
@@ -173,6 +175,10 @@ private void executeScriptFile(File scriptFile) throws MojoExecutionException {
173
175
configuration .add (ComponentRegistrar .Companion .getPLUGIN_COMPONENT_REGISTRARS (),
174
176
new ScriptingCompilerConfigurationComponentRegistrar ());
175
177
178
+ configureJdkHomeFromSystemProperty (configuration );
179
+
180
+ configuration .put (CommonConfigurationKeys .ALLOW_ANY_SCRIPTS_IN_SOURCE_ROOTS , true );
181
+
176
182
List <File > deps = new ArrayList <>();
177
183
178
184
deps .addAll (getDependenciesForScript ());
You can’t perform that action at this time.
0 commit comments