Skip to content

Commit 8dc19ff

Browse files
marko-bekhtaDavideD
authored andcommitted
[#2616] Update to Gradle 9.1
1 parent edbb903 commit 8dc19ff

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum

local-build-plugins/src/main/groovy/hr-java-library.gradle

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ repositories {
3333
mavenCentral()
3434
}
3535

36+
dependencies {
37+
// JUnit Jupiter
38+
testImplementation(libs.org.junit.jupiter.junit.jupiter.api)
39+
testRuntimeOnly(libs.org.junit.jupiter.junit.jupiter.engine)
40+
testRuntimeOnly(libs.org.junit.platform.junit.platform.launcher)
41+
}
42+
3643
ext.publishScript = rootProject.rootDir.absolutePath + '/publish.gradle'
3744

3845
tasks.withType( JavaCompile ).configureEach {
@@ -46,8 +53,10 @@ tasks.withType( Test ).configureEach {
4653
}
4754

4855
if ( !gradle.ext.javaToolchainEnabled ) {
49-
sourceCompatibility = JavaVersion.toVersion( gradle.ext.baselineJavaVersion )
50-
targetCompatibility = JavaVersion.toVersion( gradle.ext.baselineJavaVersion )
56+
java {
57+
sourceCompatibility = JavaVersion.toVersion( gradle.ext.baselineJavaVersion )
58+
targetCompatibility = JavaVersion.toVersion( gradle.ext.baselineJavaVersion )
59+
}
5160
}
5261
else {
5362
// Configure generated bytecode

0 commit comments

Comments
 (0)