Skip to content

Commit ed9b6ae

Browse files
benjderobluca
authored andcommitted
Problem: Java build run on outdated Gradle version
Solution: Update Gradle version 7.5.1 -> 8.9 and update project configuration accordingly
1 parent 659c6a1 commit ed9b6ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

zproject_java.gsl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ plugins {
142142
id 'com.google.osdetector' version '1.7.0'
143143
}
144144

145-
wrapper.gradleVersion = '7.5.1'
145+
wrapper.gradleVersion = '8.9'
146146

147147
subprojects {
148148
apply plugin: 'java'
@@ -266,12 +266,12 @@ test.dependsOn buildNative
266266
// Install and Publish section
267267

268268
task sourcesJar(type: Jar, dependsOn: 'classes') {
269-
classifier = 'sources'
269+
archiveClassifier = 'sources'
270270
from sourceSets.main.allSource
271271
}
272272

273273
task javadocJar(type: Jar, dependsOn: 'javadoc') {
274-
classifier = 'javadoc'
274+
archiveClassifier = 'javadoc'
275275
from javadoc.destinationDir
276276
}
277277

@@ -479,7 +479,7 @@ task copyLibs(type: Copy) {
479479
duplicatesStrategy = oldStrategy
480480
}
481481

482-
jar.baseName = "$(project.prefix:c)-jni-${osdetector.classifier}"
482+
jar.archiveBaseName = "$(project.prefix:c)-jni-${osdetector.classifier}"
483483
jar.dependsOn copyLibs
484484

485485
jar {

0 commit comments

Comments
 (0)