From 7713a074af933051bf8c5ce55f1dd1f1b27460b4 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Tue, 27 Feb 2024 09:56:36 +0100 Subject: [PATCH] Also exclude Jakarta Data tests from Java 17+ runs --- tooling/metamodel-generator/hibernate-jpamodelgen.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tooling/metamodel-generator/hibernate-jpamodelgen.gradle b/tooling/metamodel-generator/hibernate-jpamodelgen.gradle index 21d1b885af..90bb81ad4d 100644 --- a/tooling/metamodel-generator/hibernate-jpamodelgen.gradle +++ b/tooling/metamodel-generator/hibernate-jpamodelgen.gradle @@ -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' } } }