From 102683300043c6d61f52893aeac4c51f802a4610 Mon Sep 17 00:00:00 2001 From: Benjamin Deroche Date: Wed, 31 Jul 2024 14:39:57 +0200 Subject: [PATCH] Problem: Java build run on outdated Gradle version Solution: Update Gradle version 7.5.1 -> 8.3 and update project configuration accordingly --- zproject_java.gsl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zproject_java.gsl b/zproject_java.gsl index 7d51beb5..76f973dd 100644 --- a/zproject_java.gsl +++ b/zproject_java.gsl @@ -142,7 +142,7 @@ plugins { id 'com.google.osdetector' version '1.7.0' } -wrapper.gradleVersion = '7.5.1' +wrapper.gradleVersion = '8.3' subprojects { apply plugin: 'java' @@ -266,12 +266,12 @@ test.dependsOn buildNative // Install and Publish section task sourcesJar(type: Jar, dependsOn: 'classes') { - classifier = 'sources' + archiveClassifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: 'javadoc') { - classifier = 'javadoc' + archiveClassifier = 'javadoc' from javadoc.destinationDir } @@ -479,7 +479,7 @@ task copyLibs(type: Copy) { duplicatesStrategy = oldStrategy } -jar.baseName = "$(project.prefix:c)-jni-${osdetector.classifier}" +jar.archiveBaseName = "$(project.prefix:c)-jni-${osdetector.classifier}" jar.dependsOn copyLibs jar {