mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-22 11:06:08 +00:00
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…
x
Reference in New Issue
Block a user