Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
build.gradle : add the implementation groups for mac and linux

Adding these implementation group would allow different system base
to run my jar file.

Let's add all the relevant implementation group statments into
build.gradle.

Refer to this website on why is it done this way
https://se-education.org/guides/tutorials
/gradle.html#creating-a-jar-file
  • Loading branch information
ChanWeiJie committed Feb 4, 2022
1 parent c7dbf78 commit ff7eced
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@ dependencies {
String javaFxVersion = '11'

implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'

testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/duke/main/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
* A launcher class to workaround classpath issues.
*/
public class Launcher {

/**
* Main method to launch the application.
* @param args arguments used for the launch of application.
*/
public static void main(String[] args) {
Application.launch(Main.class, args);
}
Expand Down
Binary file removed src/main/resources/images/DaDuke.png
Binary file not shown.

0 comments on commit ff7eced

Please sign in to comment.