Fix maven script executor after changes in the jdk path processing
#KT-58101 fixed
This commit is contained in:
committed by
Space Team
parent
877c1b1742
commit
5f6d8c9030
+4
@@ -62,6 +62,8 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import static org.jetbrains.kotlin.cli.jvm.JvmArgumentsKt.configureJdkHomeFromSystemProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows to execute kotlin script files during the build process.
|
* Allows to execute kotlin script files during the build process.
|
||||||
* You can specify script file or inline script to be executed.
|
* You can specify script file or inline script to be executed.
|
||||||
@@ -174,6 +176,8 @@ public class ExecuteKotlinScriptMojo extends AbstractMojo {
|
|||||||
configuration.add(ComponentRegistrar.Companion.getPLUGIN_COMPONENT_REGISTRARS(),
|
configuration.add(ComponentRegistrar.Companion.getPLUGIN_COMPONENT_REGISTRARS(),
|
||||||
new ScriptingCompilerConfigurationComponentRegistrar());
|
new ScriptingCompilerConfigurationComponentRegistrar());
|
||||||
|
|
||||||
|
configureJdkHomeFromSystemProperty(configuration);
|
||||||
|
|
||||||
List<File> deps = new ArrayList<>();
|
List<File> deps = new ArrayList<>();
|
||||||
|
|
||||||
deps.addAll(getDependenciesForScript());
|
deps.addAll(getDependenciesForScript());
|
||||||
|
|||||||
Reference in New Issue
Block a user