We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af9f686 commit 6182332Copy full SHA for 6182332
1 file changed
src/main/java/org/mangorage/mangobotgradle/tasks/RunBotTask.java
@@ -7,6 +7,8 @@
7
8
import javax.inject.Inject;
9
import java.util.ArrayList;
10
+import java.util.Arrays;
11
+import java.util.List;
12
13
public abstract class RunBotTask extends JavaExec {
14
@Inject
@@ -28,9 +30,12 @@ public RunBotTask(RunConfig runConfig) {
28
30
// Create your module path from the config
29
31
FileCollection modulePath = getProject().getConfigurations().getByName("bootstrap");
32
33
+
34
setClasspath(modulePath); // EMPTY CLASSPATH, this is MODULE mode
35
getMainClass().set("org.mangorage.bootstrap.Bootstrap");
36
getMainModule().set("org.mangorage.bootstrap");
37
getModularity().getInferModulePath().set(true);
38
39
+ setJvmArgs(List.of("--add-modules", "java.scripting"));
40
}
41
0 commit comments