Skip to content

Commit 6b055ee

Browse files
Fixed issues related to JavaFX and jar building. Also added initial support for cross-platform compatibility.
1 parent 9b7380f commit 6b055ee

4 files changed

Lines changed: 115 additions & 2 deletions

File tree

.idea/artifacts/RadioPlayer_jar.xml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,24 @@
5555
<artifactId>javafx-fxml</artifactId>
5656
<version>20-ea+9</version>
5757
</dependency>
58-
58+
<dependency>
59+
<groupId>org.openjfx</groupId>
60+
<artifactId>javafx-graphics</artifactId>
61+
<version>20-ea+9</version>
62+
<classifier>win</classifier>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.openjfx</groupId>
66+
<artifactId>javafx-graphics</artifactId>
67+
<version>20-ea+9</version>
68+
<classifier>linux</classifier>
69+
</dependency>
70+
<dependency>
71+
<groupId>org.openjfx</groupId>
72+
<artifactId>javafx-graphics</artifactId>
73+
<version>20-ea+9</version>
74+
<classifier>mac</classifier>
75+
</dependency>
5976
<dependency>
6077
<groupId>org.junit.jupiter</groupId>
6178
<artifactId>junit-jupiter-api</artifactId>
@@ -105,7 +122,7 @@
105122
<!-- Default configuration for running with: mvn clean javafx:run -->
106123
<id>default-cli</id>
107124
<configuration>
108-
<mainClass>hr.java.player.radioplayer/hr.java.player.gui.GlavnaAplikacija
125+
<mainClass>hr.java.player.radioplayer/hr.java.player.gui.Launch
109126
</mainClass>
110127
<launcher>app</launcher>
111128
<jlinkZipName>app</jlinkZipName>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package hr.java.player.gui;
2+
3+
public class Launch {
4+
public static void main(String[] args) {
5+
GlavnaAplikacija.main(args);
6+
}
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Main-Class: hr.java.player.gui.Launch
3+

0 commit comments

Comments
 (0)