I just tried to remove the id 'org.graalvm.buildtools.native' version '0.9.14' plugin which in turn disables Spring Boot 3 AOT transformation. As a result, I have a pure Spring Boot 3 + Hibernate project usable on the JVM with nothing specific. I am also using a recent Liberica JDK (sdk use java 17.0.4.1-librca) and when running ./gradlew clean compileJava I get the same Unable to enhance class : com.example.data.jpa.CLR error. So unless I miss something, looks like at least Spring Boot 3 + Java 17 + Hibernate 6 + enhancer plugin use case is broken. This application seems pretty standard, I don’t think we do something special here. The fact that this is working with Maven Hibernate 6 plugin but not the Gradle one + the fact we had similar use case working with Hibernate 5 Gradle plugin make me think that’s a regression of Hibernate 6 Gradle plugin. |