1616 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301, USA
1717 */
1818plugins {
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
2828defaultTasks ' clean' , ' build'
2929
30- sourceCompatibility = 17
31- targetCompatibility = 17
3230compileJava. options. encoding = ' UTF-8'
3331compileJava. options. deprecation = true
3432
33+ java {
34+ sourceCompatibility = 17
35+ targetCompatibility = 17
36+ }
3537sourceSets {
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
119125distTar. enabled = false
120126
121127if (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 }
0 commit comments