Skip to content

Commit b9b6df6

Browse files
authored
Update Gradle to 9.0.0 RC1 (#187)
1 parent 8c8845c commit b9b6df6

File tree

10 files changed

+51
-11
lines changed

10 files changed

+51
-11
lines changed

.github/workflows/ci-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
uses: actions/setup-java@v4
1717
with:
1818
distribution: temurin
19+
# Java 11 for Gradle 6.x support
1920
java-version: |
2021
11
2122
17

build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ group = "org.gradlex"
77
version = "1.12"
88

99
java {
10+
toolchain.languageVersion = JavaLanguageVersion.of(17)
1011
sourceCompatibility = JavaVersion.VERSION_1_8
1112
targetCompatibility = JavaVersion.VERSION_1_8
1213
}
1314

1415
dependencies {
1516
implementation("org.ow2.asm:asm:9.8")
1617

17-
testImplementation("org.spockframework:spock-core:2.3-groovy-3.0")
18+
testImplementation("org.spockframework:spock-core:2.3-groovy-4.0")
1819
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
1920
}
2021

@@ -39,7 +40,7 @@ tasks.test {
3940
maxParallelForks = 4
4041
}
4142

42-
listOf("6.8.3", "6.9.2", "7.0.2", "7.6.1").forEach { gradleVersionUnderTest ->
43+
listOf("6.8.3", "6.9.4", "7.6.5", "8.14.2").forEach { gradleVersionUnderTest ->
4344
val testGradle = tasks.register<Test>("testGradle$gradleVersionUnderTest") {
4445
group = "verification"
4546
description = "Runs tests against Gradle $gradleVersionUnderTest"
@@ -48,7 +49,9 @@ listOf("6.8.3", "6.9.2", "7.0.2", "7.6.1").forEach { gradleVersionUnderTest ->
4849
useJUnitPlatform()
4950
maxParallelForks = 4
5051
systemProperty("gradleVersionUnderTest", gradleVersionUnderTest)
51-
javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(11) }
52+
if (gradleVersionUnderTest.startsWith("6")) {
53+
javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(11) }
54+
}
5255
}
5356
tasks.check {
5457
dependsOn(testGradle)

gradle/wrapper/gradle-wrapper.jar

1.65 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=7197a12f450794931532469d4ff21a59ea2c1cd59a3ec3f89c035c3c420a6999
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
3+
distributionSha256Sum=5086034b0656a79fee07a04cfadc103984b075ac85d3a20748649671283be1bb
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-rc-1-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

src/main/java/org/gradlex/javamodule/moduleinfo/ExtraJavaModuleInfoPlugin.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.gradlex.javamodule.moduleinfo;
1818

19-
import org.gradle.api.NonNullApi;
2019
import org.gradle.api.Plugin;
2120
import org.gradle.api.Project;
2221
import org.gradle.api.Transformer;
@@ -63,7 +62,6 @@
6362
/**
6463
* Entry point of the plugin.
6564
*/
66-
@NonNullApi
6765
public abstract class ExtraJavaModuleInfoPlugin implements Plugin<Project> {
6866

6967
@Override

src/main/java/org/gradlex/javamodule/moduleinfo/ExtraJavaModuleInfoTransform.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.gradlex.javamodule.moduleinfo;
1818

19-
import org.gradle.api.NonNullApi;
2019
import org.gradle.api.artifacts.CacheableRule;
2120
import org.gradle.api.artifacts.transform.InputArtifact;
2221
import org.gradle.api.artifacts.transform.TransformAction;
@@ -82,7 +81,6 @@
8281
* was defined for it. This way we make sure that all Jars are turned into modules.
8382
*/
8483
@CacheableRule
85-
@NonNullApi
8684
public abstract class ExtraJavaModuleInfoTransform implements TransformAction<ExtraJavaModuleInfoTransform.Parameter> {
8785

8886
private static final Pattern MODULE_INFO_CLASS_MRJAR_PATH = Pattern.compile("META-INF/versions/\\d+/module-info.class");
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright the GradleX team.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
@NullMarked
18+
package org.gradlex.javamodule.moduleinfo;
19+
20+
import org.jspecify.annotations.NullMarked;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright the GradleX team.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
@NullMarked
18+
package org.gradlex.javamodule.moduleinfo.tasks;
19+
20+
import org.jspecify.annotations.NullMarked;

src/test/groovy/org/gradlex/javamodule/moduleinfo/test/RealModuleJarPreservePatchingFunctionalTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RealModuleJarPreservePatchingFunctionalTest extends Specification {
2323
'''
2424
}
2525

26-
@IgnoreIf({ GradleBuild.gradleVersionUnderTest?.matches("[67]\\..*") }) // requires Gradle to support Java 17
26+
@IgnoreIf({ GradleBuild.gradleVersionUnderTest?.startsWith("6") }) // requires Gradle to support Java 17
2727
def "a real module cannot be extended via preserveExisting"() {
2828
given:
2929
buildFile << '''

0 commit comments

Comments
 (0)