|
@@ -3,6 +3,7 @@ plugins {
|
3
|
3
|
id 'application'
|
4
|
4
|
id 'org.openjfx.javafxplugin' version '0.0.9'
|
5
|
5
|
id 'org.beryx.jlink' version '2.15.1'
|
|
6
|
+ id 'com.github.johnrengelman.shadow' version '6.1.0'
|
6
|
7
|
}
|
7
|
8
|
|
8
|
9
|
group 'app.insa.clav'
|
|
@@ -17,7 +18,7 @@ repositories {
|
17
|
18
|
|
18
|
19
|
javafx {
|
19
|
20
|
version = "11.0.2"
|
20
|
|
- modules = [ 'javafx.controls', 'javafx.fxml','javafx.graphics','javafx.base' ]
|
|
21
|
+ modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.base']
|
21
|
22
|
}
|
22
|
23
|
|
23
|
24
|
|
|
@@ -28,40 +29,36 @@ dependencies {
|
28
|
29
|
compile group: 'org.kordamp.ikonli', name: 'ikonli-core', version: '11.5.0'
|
29
|
30
|
compile group: 'org.kordamp.ikonli', name: 'ikonli-javafx', version: '11.5.0'
|
30
|
31
|
compile group: 'org.kordamp.ikonli', name: 'ikonli-fontawesome-pack', version: '11.5.0'
|
|
32
|
+ runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:win"
|
|
33
|
+ runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:linux"
|
|
34
|
+ runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:mac"
|
31
|
35
|
}
|
32
|
36
|
|
33
|
|
-application {
|
34
|
|
- mainClassName = 'app.insa.clav.Main'
|
35
|
|
- applicationDefaultJvmArgs = [
|
36
|
|
- "--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
|
37
|
|
- "--add-exports=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED",
|
38
|
|
- "--add-exports=javafx.base/com.sun.javafx.binding=ALL-UNNAMED",
|
39
|
|
- "--add-exports=javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED",
|
40
|
|
- "--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED"
|
41
|
|
- ]
|
42
|
|
- applicationName = "JigglypuffMessenger"
|
43
|
|
-}
|
44
|
|
-
|
45
|
|
-run {
|
46
|
|
- jvmArgs = [
|
47
|
|
- "--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
|
48
|
|
- "--add-exports=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED",
|
49
|
|
- "--add-exports=javafx.base/com.sun.javafx.binding=ALL-UNNAMED",
|
50
|
|
- "--add-exports=javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED",
|
51
|
|
- "--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED"
|
52
|
|
-]
|
53
|
|
-}
|
54
|
|
-
|
|
37
|
+mainClassName = 'app.insa.clav.Launcher'
|
55
|
38
|
|
56
|
39
|
jar {
|
57
|
40
|
manifest {
|
58
|
|
- attributes("Implementation-Title": "Gradle",
|
59
|
|
- "Implementation-Version": archiveVersion)
|
|
41
|
+ attributes 'Main-Class': 'app.insa.clav.Launcher'
|
60
|
42
|
}
|
61
|
|
-}
|
62
|
43
|
|
|
44
|
+ from {
|
|
45
|
+ configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
46
|
+ }
|
|
47
|
+}
|
63
|
48
|
|
|
49
|
+shadowJar {
|
|
50
|
+ mergeServiceFiles()
|
|
51
|
+}
|
64
|
52
|
|
|
53
|
+run {
|
|
54
|
+ jvmArgs = [
|
|
55
|
+ "--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
|
|
56
|
+ "--add-exports=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED",
|
|
57
|
+ "--add-exports=javafx.base/com.sun.javafx.binding=ALL-UNNAMED",
|
|
58
|
+ "--add-exports=javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED",
|
|
59
|
+ "--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED"
|
|
60
|
+ ]
|
|
61
|
+}
|
65
|
62
|
|
66
|
63
|
jlink {
|
67
|
64
|
launcher {
|