Skip to content

Commit 4129d53

Browse files
committed
Move custom config for Groovy tests into an isolated section
1 parent 8f036e1 commit 4129d53

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

build.gradle.kts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
plugins { id("groovy") } // tests not yet migrated to Java
2-
31
version = "1.13.1"
42

5-
dependencies {
6-
implementation("org.ow2.asm:asm:9.9")
7-
8-
testImplementation("org.spockframework:spock-core:2.3-groovy-4.0")
9-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
10-
}
3+
dependencies { implementation("org.ow2.asm:asm:9.9") }
114

125
pluginPublishConventions {
136
id("${project.group}.${project.name}")
@@ -23,6 +16,12 @@ pluginPublishConventions {
2316
}
2417
}
2518

26-
tasks.compileTestGroovy { targetCompatibility = "11" } // allow tests to run against 6.x
27-
2819
testingConventions { testGradleVersions("6.8.3", "6.9.4", "7.6.5", "8.14.2") }
20+
21+
// === the following custom configuration should be removed once tests are migrated to Java
22+
apply(plugin = "groovy")
23+
24+
tasks.named<GroovyCompile>("compileTestGroovy") { targetCompatibility = "11" } // allow tests to run against 6.x
25+
26+
dependencies { testImplementation("org.spockframework:spock-core:2.3-groovy-4.0") } //
27+
// ====================================================================================

0 commit comments

Comments
 (0)