Fix wrong toolchain configuration for java17 tests
This commit is contained in:
parent
2be1c9a504
commit
456e43957e
|
@ -213,7 +213,7 @@ tasks.withType( Test.class ).each { test ->
|
|||
}
|
||||
|
||||
// Tests with records
|
||||
if ( gradle.ext.javaVersions.test.release.asInt() >= 17 ) {
|
||||
if ( gradle.ext.javaVersions.test.release.asInt() >= 17 && gradle.ext.javaToolchainEnabled ) {
|
||||
|
||||
// Add a new source set, which contains tests that can run on JDK17+
|
||||
sourceSets {
|
||||
|
|
Loading…
Reference in New Issue