This is an automated email from the ASF dual-hosted git repository.

borinquenkid pushed a commit to branch 8.0.x-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit ce3adedce3f3b45491be71be99b4a0939a18e0a3
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Thu Jun 18 15:34:12 2026 -0500

    fix: revert grails-core to compileOnly in H7 plugin; drop dead 
jboss-transaction testRuntimeOnly
    
    grails-core was incorrectly promoted to api (api leaks it to consumers).
    Both 8.0.x and the H5 plugin correctly declare it as compileOnly.
    
    The jboss javax.transaction spec was only needed to support 
hibernate-ehcache
    with the javax Hibernate 5 variant; H7 uses hibernate-jcache instead, so the
    javax dependency is dead.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 grails-data-hibernate7/grails-plugin/build.gradle | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/grails-data-hibernate7/grails-plugin/build.gradle 
b/grails-data-hibernate7/grails-plugin/build.gradle
index b5c831a7f6..8a0245e9b9 100644
--- a/grails-data-hibernate7/grails-plugin/build.gradle
+++ b/grails-data-hibernate7/grails-plugin/build.gradle
@@ -60,9 +60,9 @@ dependencies {
         exclude group:'javax.transaction', module:'jta'
     }
     api project(':grails-spring')
-    api project(':grails-core')
 
     compileOnly project(':grails-bootstrap')
+    compileOnly project(':grails-core')
 
     compileOnly 'org.spockframework:spock-core', {
         exclude group: 'junit', module: 'junit-dep'
@@ -77,9 +77,6 @@ dependencies {
     testRuntimeOnly 'com.h2database:h2'
     testRuntimeOnly 'org.apache.tomcat:tomcat-jdbc'
     testRuntimeOnly 'org.hibernate.orm:hibernate-jcache'
-    testRuntimeOnly 
"org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec:$jbossTransactionApiVersion",
 {
-        // required for hibernate-ehcache to work with javax variant of 
hibernate-core excluded
-    }
     testRuntimeOnly 'org.springframework:spring-aop'
     testRuntimeOnly 'org.springframework:spring-expression'
     testRuntimeOnly 'org.yaml:snakeyaml'

Reply via email to