|
|
@ -70,7 +70,7 @@ tasks.test { |
|
|
|
configureTest(maxGradleVersionForTests) |
|
|
|
configureTest(maxGradleVersionForTests) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tasks.register("testMinGradleVersion", Test::class.java) { |
|
|
|
val testMinGradleVersion by tasks.registering(Test::class) { |
|
|
|
tasks.test.get().let { defaultTest -> |
|
|
|
tasks.test.get().let { defaultTest -> |
|
|
|
classpath = defaultTest.classpath |
|
|
|
classpath = defaultTest.classpath |
|
|
|
} |
|
|
|
} |
|
|
@ -94,3 +94,7 @@ fun Test.configureTest(gradleVersion: String) { |
|
|
|
doFirst { error("Use JDK 14 to run tests or set up JDK_14 env. var") } |
|
|
|
doFirst { error("Use JDK 14 to run tests or set up JDK_14 env. var") } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks.named("check") { |
|
|
|
|
|
|
|
dependsOn(testMinGradleVersion) |
|
|
|
|
|
|
|
} |