@@ -5,18 +5,18 @@ plugins {
5
5
id ' idea'
6
6
id ' eclipse'
7
7
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 '
10
10
}
11
11
12
12
group ' com.codedead'
13
- version ' 1.2 .0'
13
+ version ' 1.3 .0'
14
14
15
15
def currentOS = DefaultNativePlatform . currentOperatingSystem
16
16
17
17
java {
18
- targetCompatibility = JavaVersion . VERSION_20
19
- sourceCompatibility = JavaVersion . VERSION_20
18
+ targetCompatibility = JavaVersion . VERSION_21
19
+ sourceCompatibility = JavaVersion . VERSION_21
20
20
}
21
21
22
22
application {
@@ -25,13 +25,13 @@ application {
25
25
}
26
26
27
27
javafx {
28
- version = ' 20 .0.1'
28
+ version = ' 21 .0.1'
29
29
configuration = ' implementation'
30
30
modules = [' javafx.base' , ' javafx.controls' , ' javafx.fxml' , ' javafx.media' ]
31
31
}
32
32
33
33
jlink {
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' ]
35
35
forceMerge(' log4j-api' , ' jackson' )
36
36
launcher {
37
37
name = ' Opal'
@@ -40,8 +40,6 @@ jlink {
40
40
mergedModule {
41
41
additive = true
42
42
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'
45
43
uses ' org.apache.logging.log4j.spi.Provider'
46
44
uses ' org.apache.logging.log4j.message.ThreadDumpMessage.ThreadInfoFactory'
47
45
}
@@ -105,20 +103,20 @@ tasks.register('AppImage') {
105
103
doLast {
106
104
copy {
107
105
from ' .AppImage/.AppDir'
108
- into " ${ buildDir } / AppImage/Opal.AppDir"
106
+ into layout . buildDirectory . dir( " AppImage/Opal.AppDir" )
109
107
}
110
108
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/" )
113
111
}
114
112
copy {
115
113
from ' .AppImage/.AppDir/Opal.png'
116
- into " ${ buildDir } / AppImage/Opal.AppDir/usr/lib"
114
+ into layout . buildDirectory . dir( " AppImage/Opal.AppDir/usr/lib" )
117
115
}
118
116
exec {
119
117
commandLine ' sh' , " ${ project.rootDir} /.AppImage/createAppImage.sh" , " ${ project.version.toString()} "
120
118
}
121
- delete " ${ buildDir } / AppImage/Opal.AppDir"
119
+ delete layout . buildDirectory . dir( " AppImage/Opal.AppDir" )
122
120
}
123
121
}
124
122
@@ -142,11 +140,11 @@ repositories {
142
140
}
143
141
144
142
dependencies {
145
- implementation ' org.apache.logging.log4j:log4j-core:2.20.0 '
143
+ implementation ' org.apache.logging.log4j:log4j-core:2.21.1 '
146
144
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 '
150
148
}
151
149
152
150
tasks. named(' test' ) {
0 commit comments