Skip to content

Commit

Permalink
Problem: Java build run on outdated Gradle version
Browse files Browse the repository at this point in the history
Solution: Update Gradle version 7.5.1 -> 8.9 and update project configuration accordingly
  • Loading branch information
benjdero authored and bluca committed Jul 31, 2024
1 parent 659c6a1 commit ed9b6ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zproject_java.gsl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ plugins {
id 'com.google.osdetector' version '1.7.0'
}

wrapper.gradleVersion = '7.5.1'
wrapper.gradleVersion = '8.9'

subprojects {
apply plugin: 'java'
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ed9b6ae

Please sign in to comment.