Skip to content

Commit d921c99

Browse files
committed
Update to Gradle 9.1
1 parent da13e0b commit d921c99

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

build.gradle

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301, USA
1717
*/
1818
plugins {
19-
id "edu.sc.seis.launch4j" version "2.5.4"
19+
id "edu.sc.seis.launch4j" version "4.0.0"
2020
id "net.ossindex.audit" version "0.4.11"
2121
id "com.netflix.nebula.ospackage" version "12.0.0"
2222
}
@@ -27,11 +27,13 @@ apply plugin: 'application'
2727

2828
defaultTasks 'clean', 'build'
2929

30-
sourceCompatibility = 17
31-
targetCompatibility = 17
3230
compileJava.options.encoding = 'UTF-8'
3331
compileJava.options.deprecation = true
3432

33+
java {
34+
sourceCompatibility = 17
35+
targetCompatibility = 17
36+
}
3537
sourceSets {
3638
main {
3739
java {
@@ -80,7 +82,7 @@ dependencies {
8082
// Update transitive dependency from vfs due to vulnerability
8183
implementation 'org.apache.hadoop:hadoop-hdfs-client:3.4.2'
8284
// Update transitive dependency from vfs through hadoop-hdfs-client due to vulnerability
83-
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.19.2'
85+
implementation 'com.fasterxml.jackson.core:jackson-core:2.20.0'
8486

8587
implementation ('org.apache.commons:commons-compress:1.28.0') {
8688
exclude group: 'org.apache.commons', module: 'commons-lang3'
@@ -114,13 +116,17 @@ repositories {
114116
mavenCentral()
115117
}
116118

117-
mainClassName = 'jfs.JFileSync'
119+
var applicationMainClass = 'jfs.JFileSync'
120+
121+
application {
122+
mainClass.set(applicationMainClass)
123+
}
118124

119125
distTar.enabled = false
120126

121127
if (l4j) {
122128
launch4j {
123-
mainClassName = project.mainClassName
129+
mainClassName = applicationMainClass
124130
version = '3.0-SNAPSHOT'
125131
textVersion = 'Executables Release'
126132
fileDescription = 'Java based encrypting File Syncing Tool'
@@ -136,7 +142,7 @@ if (l4j) {
136142
maxHeapSize = 1536
137143
}
138144

139-
task createApplication(type: edu.sc.seis.launch4j.tasks.Launch4jExternalTask) {
145+
task createApplication(type: edu.sc.seis.launch4j.tasks.Launch4jLibraryTask) {
140146
outfile = 'JFileSync3.exe'
141147
xmlFileName = 'JFileSync3.xml'
142148
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)