Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 285efe8

Browse files
committed
build: add jboss-transaction-api for hibernate-ehcache
Excluding the `javax` variant from `hibernate-ehcache` requires explicitly including `jboss-transaction-api`.
1 parent b00713a commit 285efe8

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

examples/grails-hibernate/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ dependencies {
3030
// exclude javax variant of hibernate-core 5.6
3131
exclude group: 'org.hibernate', module: 'hibernate-core'
3232
}
33+
runtimeOnly "org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec:$jbossTransactionApiVersion", {
34+
// required for hibernate-ehcache to work with javax variant of hibernate-core excluded
35+
}
3336
runtimeOnly 'org.springframework.boot:spring-boot-autoconfigure'
3437
runtimeOnly 'org.springframework.boot:spring-boot-starter-logging'
3538
runtimeOnly 'org.springframework.boot:spring-boot-starter-tomcat'

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ grailsGradlePluginVersion=7.0.0-M2
66
grailsVersion=7.0.0-M1
77
groovyVersion=4.0.24
88
hibernateVersion=5.6.15.Final
9+
jbossTransactionApiVersion=2.0.0.Final
910
yakworksHibernateGroovyProxyVersion=1.1
1011
micronautPlatformVersion=4.6.3
1112
picocliVersion=4.7.6

grails-datastore-gorm-hibernate/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ dependencies {
4040
// exclude javax variant of hibernate-core 5.6
4141
exclude group: 'org.hibernate', module: 'hibernate-core'
4242
}
43+
testRuntimeOnly "org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec:$jbossTransactionApiVersion", {
44+
// required for hibernate-ehcache to work with javax variant of hibernate-core excluded
45+
}
4346
testRuntimeOnly "org.slf4j:slf4j-simple"
4447
testRuntimeOnly "org.slf4j:jcl-over-slf4j"
4548
testRuntimeOnly "org.springframework:spring-aop"

grails-plugin/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ dependencies {
4646
// exclude javax variant of hibernate-core 5.6
4747
exclude group: 'org.hibernate', module: 'hibernate-core'
4848
}
49+
runtimeOnly "org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec:$jbossTransactionApiVersion", {
50+
// required for hibernate-ehcache to work with javax variant of hibernate-core excluded
51+
}
4952
testRuntimeOnly "org.springframework:spring-aop"
5053
testRuntimeOnly "org.springframework:spring-expression"
5154
testRuntimeOnly "org.yaml:snakeyaml"

0 commit comments

Comments
 (0)