Skip to content

Commit

Permalink
Fix shadowJar build to generate the final jar
Browse files Browse the repository at this point in the history
Also, add gui application title :D
  • Loading branch information
maxiutomoq committed Feb 22, 2024
1 parent f905352 commit b76dff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ test {
}

application {
mainClass.set("arona.Launcher")
mainClass.set("arona.Arona")
}

shadowJar {
archiveBaseName = "arona"
archiveClassifier = null
mainClassName = "arona.Arona"
mainClassName = "arona.Launcher"
archiveFileName = "arona.jar"
dependsOn("distZip", "distTar")
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/arona/gui/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public void start(Stage stage) {
stage.setScene(scene);
fxmlLoader.<MainWindow>getController().setArona(arona);
fxmlLoader.<MainWindow>getController().setStage(stage);
stage.setTitle("A.R.O.N.A.");
stage.show();
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit b76dff0

Please sign in to comment.