Also exclude Jakarta Data tests from Java 17+ runs

This commit is contained in:
Christian Beikov 2024-02-27 09:56:36 +01:00
parent 94cb793180
commit 7713a074af
1 changed files with 7 additions and 1 deletions

View File

@ -45,6 +45,13 @@ compileTestJava {
]
}
sourceSets {
test {
java {
exclude '**/data/*.java'
}
}
}
// Tests with records
if ( jdkVersions.test.release.asInt() >= 17 && jdkVersions.explicit ) {
@ -69,7 +76,6 @@ else {
test {
java {
exclude '**/records/*.java'
exclude '**/data/*.java'
}
}
}