|
1 | | -plugins { |
2 | | - id("groovy") |
3 | | - id("org.gradlex.internal.plugin-publish-conventions") version "0.6" |
4 | | -} |
5 | | - |
6 | | -group = "org.gradlex" |
7 | | -version = "1.7" |
8 | | - |
9 | | -tasks.withType<JavaCompile>().configureEach { options.release = 8 } |
10 | | - |
11 | | -dependencies { |
12 | | - testImplementation("org.spockframework:spock-core:2.3-groovy-4.0") |
13 | | - testImplementation("org.gradle.exemplar:samples-check:1.0.3") |
14 | | - testRuntimeOnly("org.junit.vintage:junit-vintage-engine") |
15 | | -} |
16 | | - |
17 | | -pluginPublishConventions { |
18 | | - id("${project.group}.${project.name}") |
19 | | - implementationClass("org.gradlex.javamodule.testing.JavaModuleTestingPlugin") |
20 | | - displayName("Java Module Testing Gradle Plugin") |
21 | | - description("A plugin to test Java Modules (whitebox and blackbox) without the hassle.") |
22 | | - tags("gradlex", "java", "modularity", "jigsaw", "jpms", "testing") |
23 | | - gitHub("https://github.com/gradlex-org/java-module-testing") |
24 | | - developer { |
25 | | - id.set("jjohannes") |
26 | | - name.set("Jendrik Johannes") |
27 | | - |
28 | | - } |
29 | | -} |
30 | | - |
31 | | -testing.suites.named<JvmTestSuite>("test") { |
32 | | - useJUnitJupiter() |
33 | | - listOf("7.4", "7.6.5", "8.0.2", "8.14.2").forEach { gradleVersionUnderTest -> |
34 | | - targets.register("test${gradleVersionUnderTest}") { |
35 | | - testTask { |
36 | | - group = LifecycleBasePlugin.VERIFICATION_GROUP |
37 | | - description = "Runs tests against Gradle $gradleVersionUnderTest" |
38 | | - systemProperty("gradleVersionUnderTest", gradleVersionUnderTest) |
39 | | - exclude("**/*SamplesTest.class") // Not yet cross-version ready |
40 | | - } |
41 | | - } |
42 | | - } |
43 | | - targets.all { |
44 | | - testTask { |
45 | | - maxParallelForks = 4 |
46 | | - inputs.dir(layout.projectDirectory.dir("samples")) |
47 | | - inputs.dir("samples") |
48 | | - } |
49 | | - } |
50 | | -} |
| 1 | +version = "1.7" |
| 2 | + |
| 3 | +pluginPublishConventions { |
| 4 | + id("${project.group}.${project.name}") |
| 5 | + implementationClass("org.gradlex.javamodule.testing.JavaModuleTestingPlugin") |
| 6 | + displayName("Java Module Testing Gradle Plugin") |
| 7 | + description("A plugin to test Java Modules (whitebox and blackbox) without the hassle.") |
| 8 | + tags("gradlex", "java", "modularity", "jigsaw", "jpms", "testing") |
| 9 | + gitHub("https://github.com/gradlex-org/java-module-testing") |
| 10 | + developer { |
| 11 | + id.set("jjohannes") |
| 12 | + name.set("Jendrik Johannes") |
| 13 | + |
| 14 | + } |
| 15 | +} |
| 16 | + |
| 17 | +testingConventions { testGradleVersions("7.4", "7.6.5", "8.0.2", "8.14.2") } |
| 18 | + |
| 19 | +// === the following custom configuration should be removed once tests are migrated to Java |
| 20 | +apply(plugin = "groovy") |
| 21 | + |
| 22 | +tasks.named<GroovyCompile>("compileTestGroovy") { targetCompatibility = "11" } // allow tests to run against 6.x |
| 23 | + |
| 24 | +dependencies { testImplementation("org.spockframework:spock-core:2.3-groovy-4.0") } // |
| 25 | +// ==================================================================================== |
0 commit comments