@@ -5,18 +5,18 @@ plugins {
55 id ' idea'
66 id ' eclipse'
77 id ' application'
8- id ' org.beryx.jlink' version ' 2.26 .0'
9- id ' org.openjfx.javafxplugin' version ' 0.0.14 '
8+ id ' org.beryx.jlink' version ' 3.0 .0'
9+ id ' org.openjfx.javafxplugin' version ' 0.1.0 '
1010}
1111
1212group ' com.codedead'
13- version ' 1.2 .0'
13+ version ' 1.3 .0'
1414
1515def currentOS = DefaultNativePlatform . currentOperatingSystem
1616
1717java {
18- targetCompatibility = JavaVersion . VERSION_20
19- sourceCompatibility = JavaVersion . VERSION_20
18+ targetCompatibility = JavaVersion . VERSION_21
19+ sourceCompatibility = JavaVersion . VERSION_21
2020}
2121
2222application {
@@ -25,13 +25,13 @@ application {
2525}
2626
2727javafx {
28- version = ' 20 .0.1'
28+ version = ' 21 .0.1'
2929 configuration = ' implementation'
3030 modules = [' javafx.base' , ' javafx.controls' , ' javafx.fxml' , ' javafx.media' ]
3131}
3232
3333jlink {
34- options = [' --strip-debug' , ' --compress' , ' 2 ' , ' --no-header-files' , ' --no-man-pages' ]
34+ options = [' --strip-debug' , ' --compress' , ' zip-9 ' , ' --no-header-files' , ' --no-man-pages' ]
3535 forceMerge(' log4j-api' , ' jackson' )
3636 launcher {
3737 name = ' Opal'
@@ -40,8 +40,6 @@ jlink {
4040 mergedModule {
4141 additive = true
4242 uses ' org.apache.logging.log4j.util.PropertySource'
43- uses ' org.apache.logging.log4j.core.util.ContextDataProvider'
44- uses ' org.apache.logging.log4j.core.util.WatchEventService'
4543 uses ' org.apache.logging.log4j.spi.Provider'
4644 uses ' org.apache.logging.log4j.message.ThreadDumpMessage.ThreadInfoFactory'
4745 }
@@ -105,20 +103,20 @@ tasks.register('AppImage') {
105103 doLast {
106104 copy {
107105 from ' .AppImage/.AppDir'
108- into " ${ buildDir } / AppImage/Opal.AppDir"
106+ into layout . buildDirectory . dir( " AppImage/Opal.AppDir" )
109107 }
110108 copy {
111- from " ${ buildDir } / jpackage/Opal/"
112- into " ${ buildDir } / AppImage/Opal.AppDir/usr/"
109+ from layout . buildDirectory . dir( " jpackage/Opal/" )
110+ into layout . buildDirectory . dir( " AppImage/Opal.AppDir/usr/" )
113111 }
114112 copy {
115113 from ' .AppImage/.AppDir/Opal.png'
116- into " ${ buildDir } / AppImage/Opal.AppDir/usr/lib"
114+ into layout . buildDirectory . dir( " AppImage/Opal.AppDir/usr/lib" )
117115 }
118116 exec {
119117 commandLine ' sh' , " ${ project.rootDir} /.AppImage/createAppImage.sh" , " ${ project.version.toString()} "
120118 }
121- delete " ${ buildDir } / AppImage/Opal.AppDir"
119+ delete layout . buildDirectory . dir( " AppImage/Opal.AppDir" )
122120 }
123121}
124122
@@ -142,11 +140,11 @@ repositories {
142140}
143141
144142dependencies {
145- implementation ' org.apache.logging.log4j:log4j-core:2.20.0 '
143+ implementation ' org.apache.logging.log4j:log4j-core:2.21.1 '
146144 implementation ' io.github.mkpaz:atlantafx-base:2.0.1'
147- implementation ' com.fasterxml.jackson.core:jackson-databind:2.15.2 '
148- testImplementation ' org.junit.jupiter:junit-jupiter-api:5.9.3 '
149- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.9.3 '
145+ implementation ' com.fasterxml.jackson.core:jackson-databind:2.15.3 '
146+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.10.0 '
147+ testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.10.0 '
150148}
151149
152150tasks. named(' test' ) {
0 commit comments