@@ -5,17 +5,17 @@ plugins {
55 id ' idea'
66 id ' eclipse'
77 id ' application'
8- id " org.beryx.jlink" version " 2.25.0 "
8+ id ' org.beryx.jlink' version ' 2.26.0 '
99}
1010
1111group ' com.codedead'
12- version ' 1.0.3 '
12+ version ' 1.1.0 '
1313
1414def currentOS = DefaultNativePlatform . currentOperatingSystem
1515
1616java {
17- targetCompatibility = JavaVersion . VERSION_18
18- sourceCompatibility = JavaVersion . VERSION_18
17+ targetCompatibility = JavaVersion . VERSION_20
18+ sourceCompatibility = JavaVersion . VERSION_20
1919}
2020
2121application {
@@ -30,6 +30,15 @@ jlink {
3030 name = ' Opal'
3131 }
3232
33+ mergedModule {
34+ additive = true
35+ uses ' org.apache.logging.log4j.util.PropertySource'
36+ uses ' org.apache.logging.log4j.core.util.ContextDataProvider'
37+ uses ' org.apache.logging.log4j.core.util.WatchEventService'
38+ uses ' org.apache.logging.log4j.spi.Provider'
39+ uses ' org.apache.logging.log4j.message.ThreadDumpMessage.ThreadInfoFactory'
40+ }
41+
3342 if (currentOS. isWindows()) {
3443 jpackage {
3544 installerType = ' msi'
@@ -39,7 +48,7 @@ jlink {
3948 ' --win-menu-group' , ' CodeDead' ,
4049 ' --win-shortcut' ,
4150 ' --win-dir-chooser' ,
42- ' --copyright' , ' Copyright (c) 2022 CodeDead' ,
51+ ' --copyright' , ' Copyright (c) 2023 CodeDead' ,
4352 ' --description' , ' Opal is a free and open-source JavaFX application that can play relaxing music in the background' ,
4453 ' --vendor' , ' CodeDead' ,
4554 ' --license-file' , ' LICENSE'
@@ -53,7 +62,7 @@ jlink {
5362 ' --linux-shortcut' ,
5463 ' --linux-package-name' , ' opal-codedead' ,
5564 ' --linux-rpm-license-type' , ' GPLv3' ,
56- ' --copyright' , ' Copyright (c) 2022 CodeDead' ,
65+ ' --copyright' , ' Copyright (c) 2023 CodeDead' ,
5766 ' --description' , ' Opal is a free and open-source JavaFX application that can play relaxing music in the background' ,
5867 ' --vendor' , ' CodeDead' ,
5968 ' --license-file' , ' LICENSE'
@@ -62,7 +71,7 @@ jlink {
6271 }
6372}
6473
65- task AppImage ( ) {
74+ tasks . register( ' AppImage ' ) {
6675 dependsOn jpackageImage
6776 doLast {
6877 copy {
@@ -77,11 +86,9 @@ task AppImage() {
7786 from ' .AppImage/.AppDir/Opal.png'
7887 into " ${ buildDir} /AppImage/Opal.AppDir/usr/lib"
7988 }
80-
8189 exec {
8290 commandLine ' sh' , " ${ project.rootDir} /.AppImage/createAppImage.sh" , " ${ project.version.toString()} "
8391 }
84-
8592 delete " ${ buildDir} /AppImage/Opal.AppDir"
8693 }
8794}
@@ -96,6 +103,7 @@ clean.doFirst {
96103 delete ' license.pdf'
97104 delete ' help.pdf'
98105 delete ' logs'
106+ delete ' .opal'
99107}
100108
101109repositories {
@@ -112,17 +120,18 @@ if (currentOS.isWindows()) {
112120}
113121
114122dependencies {
115- implementation " org.openjfx:javafx-base:18.0.1:${ platform} "
116- implementation " org.openjfx:javafx-controls:18.0.1:${ platform} "
117- implementation " org.openjfx:javafx-graphics:18.0.1:${ platform} "
118- implementation " org.openjfx:javafx-fxml:18.0.1:${ platform} "
119- implementation " org.openjfx:javafx-media:18.0.1:${ platform} "
120- implementation ' org.apache.logging.log4j:log4j-core:2.17.2'
121- implementation ' com.fasterxml.jackson.core:jackson-databind:2.13.3'
122- testImplementation ' org.junit.jupiter:junit-jupiter-api:5.8.2'
123- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.8.2'
123+ implementation " org.openjfx:javafx-base:20:${ platform} "
124+ implementation " org.openjfx:javafx-controls:20:${ platform} "
125+ implementation " org.openjfx:javafx-graphics:20:${ platform} "
126+ implementation " org.openjfx:javafx-fxml:20:${ platform} "
127+ implementation " org.openjfx:javafx-media:20:${ platform} "
128+ implementation ' org.apache.logging.log4j:log4j-core:2.20.0'
129+ implementation ' io.github.mkpaz:atlantafx-base:1.2.0'
130+ implementation ' com.fasterxml.jackson.core:jackson-databind:2.14.2'
131+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.9.2'
132+ testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.9.2'
124133}
125134
126- test {
135+ tasks . named( ' test' ) {
127136 useJUnitPlatform()
128137}
0 commit comments