Skip to content

Commit 3738e98

Browse files
committed
Fix testing against 6.x
1 parent b2e2ea8 commit 3738e98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ pluginPublishConventions {
6161

6262
testingConventions { testGradleVersions("6.8.3", "6.9.4", "7.0.2", "8.0.2", "8.14.3") }
6363

64+
tasks.compileTestJava { options.release = 11 } // allow tests to run against 6.x
65+
6466
val generateCapabilitiesList =
6567
tasks.register<CapabilityListing>("generateCapabilitiesList") {
6668
pluginClasses.from(tasks.jar)
@@ -114,5 +116,7 @@ abstract class CapabilityListing : DefaultTask() {
114116
// === the following custom configuration should be removed once tests are migrated to Java
115117
apply(plugin = "groovy")
116118

119+
tasks.named<GroovyCompile>("compileTestGroovy") { targetCompatibility = "11" } // allow tests to run against 6.x
120+
117121
dependencies { testImplementation("org.spockframework:spock-core:2.3-groovy-4.0") } //
118122
// ====================================================================================

0 commit comments

Comments
 (0)