From 0b0d9339a6936c262b76138ce45b92a0901bbec5 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Wed, 1 Sep 2021 19:48:37 +0200 Subject: [PATCH] Switch to old junit platform for hibernate-enhance-maven-plugin module --- .../hibernate-enhance-maven-plugin.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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