borinquenkid commented on code in PR #15568:
URL: https://github.com/apache/grails-core/pull/15568#discussion_r3440428892


##########
grails-test-examples/hibernate7/grails-hibernate/build.gradle:
##########
@@ -55,10 +55,8 @@ dependencies {
     runtimeOnly 'org.apache.grails:grails-services'
     runtimeOnly 'org.apache.grails:grails-url-mappings'
     runtimeOnly 'org.apache.grails:grails-fields'
-    runtimeOnly 'org.hibernate:hibernate-ehcache', {
-        // exclude javax variant of hibernate-core 5.6
-        exclude group: 'org.hibernate', module: 'hibernate-core'
-    }
+    runtimeOnly 'org.hibernate.orm:hibernate-jcache'
+    // TODO: hibernate-ehcache was icnluded here but historically was replaced 
by hibernate-jcache

Review Comment:
   Good question — the `JCacheRegionFactory` from `hibernate-jcache` is just 
the Hibernate adapter; it still needs a JCache provider implementation on the 
runtime classpath. For this test app I've added Caffeine's JCache module 
(`com.github.ben-manes.caffeine:jcache`) which is lightweight, needs no 
configuration file, and is managed by the Spring Boot BOM so no explicit 
version is required. Updated in this commit.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to