diff --git a/tooling/hibernate-enhance-maven-plugin/hibernate-enhance-maven-plugin.gradle b/tooling/hibernate-enhance-maven-plugin/hibernate-enhance-maven-plugin.gradle index 7ae39a1e1f..26203ce6a2 100644 --- a/tooling/hibernate-enhance-maven-plugin/hibernate-enhance-maven-plugin.gradle +++ b/tooling/hibernate-enhance-maven-plugin/hibernate-enhance-maven-plugin.gradle @@ -106,4 +106,6 @@ processResources.doLast { } processResources.dependsOn processPluginXml - +// Use the "old" junit platform for this module as the JUnit platform will do nested class loading +// which is interfering with the enhancement test, as classes are loaded before enhancement +test.useJUnit() \ No newline at end of file