Skip to content

Commit 2d6c773

Browse files
committed
Updated to requiring bootstrap....
1 parent 097ef56 commit 2d6c773

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/java/org/mangorage/mangobotgradle/tasks/CopyTask.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,12 @@ public CopyTask(Config config, String group) {
6363
mustRunAfter(dependency);
6464
}
6565

66-
6766
@TaskAction
6867
public void run() {
6968
if (isPluginDev) {
7069
getProject().getConfigurations().getByName("bot").getFiles().forEach(a -> {
7170
try {
72-
Files.copy(a.toPath(), getProject().getProjectDir().toPath().resolve("build/run/plugins/bot.jar"), StandardCopyOption.REPLACE_EXISTING);
71+
Files.copy(a.toPath(), getProject().getProjectDir().toPath().resolve("build/run/boot/boot.jar"), StandardCopyOption.REPLACE_EXISTING);
7372
} catch (IOException e) {
7473
throw new RuntimeException(e);
7574
}

src/main/java/org/mangorage/mangobotgradle/tasks/RunBotJPMSTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public RunBotJPMSTask(Config config, String group, List<String> args) {
3232
);
3333

3434
setClasspath(modulePath); // EMPTY CLASSPATH, this is MODULE mode
35-
getMainClass().set("org.mangorage.mangobot.loader.Loader");
36-
getMainModule().set("org.mangorage.mangobotcore");
35+
getMainClass().set("org.mangorage.bootstrap.Bootstrap");
36+
getMainModule().set("org.mangorage.bootstrap");
3737
getModularity().getInferModulePath().set(true);
3838
}
3939
}

0 commit comments

Comments
 (0)