Skip to content

Commit 12ddcf4

Browse files
committed
Merge branch 'main' into preview
2 parents 812aa1f + baf31c0 commit 12ddcf4

File tree

17 files changed

+554
-196
lines changed

17 files changed

+554
-196
lines changed

build.gradle.kts

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
plugins {
2-
id("groovy")
32
id("org.gradlex.internal.plugin-publish-conventions") version "0.6"
43
}
54

65
group = "org.gradlex"
76
version = "1.0.1"
87

98
java {
10-
sourceCompatibility = JavaVersion.VERSION_1_8
11-
targetCompatibility = JavaVersion.VERSION_1_8
9+
toolchain.languageVersion = JavaLanguageVersion.of(17)
1210
}
1311

14-
dependencies {
15-
testImplementation("org.spockframework:spock-core:2.1-groovy-3.0")
16-
testImplementation("org.gradle.exemplar:samples-check:1.0.3")
17-
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
12+
tasks.compileJava {
13+
options.release = 8
1814
}
1915

2016
pluginPublishConventions {
@@ -31,7 +27,23 @@ pluginPublishConventions {
3127
}
3228
}
3329

34-
tasks.test {
35-
useJUnitPlatform()
36-
maxParallelForks = 4
30+
testing.suites.named<JvmTestSuite>("test") {
31+
useJUnitJupiter()
32+
listOf("7.4", "7.6.5", "8.0.2", "8.14.2").forEach { gradleVersionUnderTest ->
33+
targets.register("test${gradleVersionUnderTest}") {
34+
testTask {
35+
group = LifecycleBasePlugin.VERIFICATION_GROUP
36+
description = "Runs tests against Gradle $gradleVersionUnderTest"
37+
systemProperty("gradleVersionUnderTest", gradleVersionUnderTest)
38+
}
39+
}
40+
}
41+
dependencies {
42+
implementation("org.assertj:assertj-core:3.27.3")
43+
}
44+
targets.configureEach {
45+
testTask {
46+
maxParallelForks = 4
47+
}
48+
}
3749
}

gradle/wrapper/gradle-wrapper.jar

1.65 KB
Binary file not shown.

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.14.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-rc-1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
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/packaging/JavaModulePackagingExtension.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.gradle.api.Action;
2020
import org.gradle.api.NamedDomainObjectContainer;
2121
import org.gradle.api.NamedDomainObjectSet;
22-
import org.gradle.api.NonNullApi;
2322
import org.gradle.api.Project;
2423
import org.gradle.api.artifacts.Configuration;
2524
import org.gradle.api.artifacts.ConfigurationContainer;
@@ -63,7 +62,6 @@
6362
import static org.gradle.nativeplatform.OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE;
6463
import static org.gradle.nativeplatform.OperatingSystemFamily.WINDOWS;
6564

66-
@NonNullApi
6765
abstract public class JavaModulePackagingExtension {
6866
private static final Attribute<Boolean> JAVA_MODULE_ATTRIBUTE = Attribute.of("javaModule", Boolean.class);
6967
private static final String INTERNAL = "internal";

src/main/java/org/gradlex/javamodule/packaging/JavaModulePackagingPlugin.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.packaging;
1818

19-
import org.gradle.api.NonNullApi;
2019
import org.gradle.api.Plugin;
2120
import org.gradle.api.Project;
2221
import org.gradle.api.file.SourceDirectorySet;
@@ -29,7 +28,6 @@
2928
import javax.inject.Inject;
3029

3130
@SuppressWarnings("unused")
32-
@NonNullApi
3331
public abstract class JavaModulePackagingPlugin implements Plugin<Project> {
3432

3533
@Inject
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.packaging.internal;
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.packaging.model;
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.packaging;
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.packaging.tasks;
19+
20+
import org.jspecify.annotations.NullMarked;

0 commit comments

Comments
 (0)