diff --git a/build.gradle b/build.gradle index 6781274fb1..0a02bcd439 100644 --- a/build.gradle +++ b/build.gradle @@ -342,7 +342,7 @@ tasks.named("dependencyUpdates").configure { } tasks.named("wrapper") { - gradleVersion = '8.1.1' + gradleVersion = '8.2.1' distributionType = Wrapper.DistributionType.BIN } @@ -406,4 +406,4 @@ if (project.hasProperty('generateSBOM')) { artifactoryPublish { publications('sbom') } -} \ No newline at end of file +} diff --git a/buildSrc/src/main/groovy/corda-api.common-library.gradle b/buildSrc/src/main/groovy/corda-api.common-library.gradle index fb3e8cfb51..07e4feada6 100644 --- a/buildSrc/src/main/groovy/corda-api.common-library.gradle +++ b/buildSrc/src/main/groovy/corda-api.common-library.gradle @@ -29,6 +29,7 @@ dependencies { testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion" testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion" + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } tasks.named('jar', Jar) { diff --git a/gradle.properties b/gradle.properties index 9885a5f21f..cfdbab243c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -61,7 +61,7 @@ osgiVersion = 8.0.0 osgiAnnotationVersion = 8.1.0 osgiScrAnnotationVersion = 1.5.1 -gradleEnterpriseVersion = 3.12.2 +gradleEnterpriseVersion = 3.14.1 gradleDataPlugin = 1.8.2 org.gradle.caching = true gradleEnterpriseUrl = https://gradle.dev.r3.com diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index c1962a79e2..033e24c4cd 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 37aef8d3f0..9f4197d5f4 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index aeb74cbb43..fcb6fca147 100755 --- a/gradlew +++ b/gradlew @@ -130,10 +130,13 @@ location of your Java installation." fi else JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." + fi fi # Increase the maximum file descriptors if we can.