@@ -42,15 +42,15 @@ dependencies {
4242 implementation ' org.twdata.maven:mojo-executor:2.3.0'
4343 implementation ' commons-io:commons-io:2.11.0'
4444 implementation ' org.apache.commons:commons-lang3:3.9'
45- implementation ' org.apache.commons:commons-collections4:4.1 '
45+ implementation ' org.apache.commons:commons-collections4:4.3 '
4646 implementation ' org.apache.commons:commons-compress:1.21'
4747 implementation ' org.apache.velocity:velocity-engine-core:2.3'
4848 implementation ' org.vafer:jdeb:1.9'
4949 implementation ' net.jsign:jsign-core:6.0'
5050 implementation ' org.redline-rpm:redline:1.2.10'
5151 implementation ' edu.sc.seis.launch4j:launch4j:3.0.5'
5252
53- testImplementation ' junit:junit:4.12 '
53+ testImplementation ' junit:junit:4.13.1 '
5454
5555 compileOnly ' org.apache.maven.plugin-tools:maven-plugin-annotations:3.6.0'
5656
@@ -72,7 +72,7 @@ targetCompatibility = JavaVersion.VERSION_1_8
7272
7373compileJava. options. encoding = ' UTF-8'
7474
75- // supress javadoc warnings
75+ // suppress javadoc warnings
7676javadoc. options. addStringOption(' Xdoclint:none' , ' -quiet' )
7777
7878java {
@@ -154,7 +154,8 @@ publishing {
154154}
155155
156156// runs the plugin description generator
157- task generatePluginDescriptor (type : JavaExec , dependsOn : compileJava) {
157+ tasks. register(' generatePluginDescriptor' , JavaExec ) {
158+ dependsOn compileJava
158159 def pluginDescriptorFile = new File (project. compileJava. destinationDirectory. asFile. get(), ' META-INF/maven/plugin.xml' )
159160
160161 // FIXME: this does not seem to be working
@@ -196,27 +197,27 @@ nexusStaging {
196197 password = project. findProperty(' ossrhPassword' ) ?: ' '
197198}
198199
199- task updateUniversalJavaApplicationStub ( type : Download ) {
200+ tasks . register( ' updateUniversalJavaApplicationStub ' , Download ) {
200201 def version = ' 20230601.235708'
201202 group ' Update assets'
202- description ' Downloads compiled and scripted versions of universalJavaApplicationStub to src/main/resources/mac overriding the existing ones.'
203+ description ' Downloads compiled and scripted versions of universalJavaApplicationStub to src/main/resources/mac overriding the existing ones.'
203204 src([
204- " https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${ version} /universalJavaApplicationStub.sh" ,
205- " https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${ version} /universalJavaApplicationStub.x86_64" ,
206- " https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${ version} /universalJavaApplicationStub.arm64" ,
207- " https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${ version} /universalJavaApplicationStub"
205+ " https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${ version} /universalJavaApplicationStub.sh" ,
206+ " https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${ version} /universalJavaApplicationStub.x86_64" ,
207+ " https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${ version} /universalJavaApplicationStub.arm64" ,
208+ " https://github.com/fvarrui/universalJavaApplicationStub/releases/download/${ version} /universalJavaApplicationStub"
208209 ])
209210 dest file(' src/main/resources/mac' )
210- overwrite true
211+ overwrite true
211212}
212213
213- task updateWhyJavaLauncher ( type : Download ) {
214+ tasks . register( ' updateWhyJavaLauncher ' , Download ) {
214215 def version = ' 1.1.2'
215216 group ' Update assets'
216- description ' Downloads JavaLauncher.exe to src/main/resources/windows and overwrites the existing one.'
217+ description ' Downloads JavaLauncher.exe to src/main/resources/windows and overwrites the existing one.'
217218 src([
218- " https://github.com/AstroImageJ/Why/releases/download/${ version} /JavaLauncher.exe"
219+ " https://github.com/AstroImageJ/Why/releases/download/${ version} /JavaLauncher.exe"
219220 ])
220221 dest file(' src/main/resources/windows' )
221- overwrite true
222+ overwrite true
222223}
0 commit comments