Skip to content

Commit 20793bf

Browse files
authored
Merge pull request #14032 from grails/hibernate-ehcache-breaking-change
Update test projects to set hibernate-ehcache dependency
2 parents 3c5db4b + ecafcca commit 20793bf

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ org.gradle.daemon=true
2323
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1536M -XX:MaxMetaspaceSize=1024M
2424

2525
# libraries only specific to test apps, these should not be exposed
26+
hibernateVersion=5.6.15.Final
27+
jbossTransactionApiVersion=2.0.0.Final
2628
micronautVersion=4.6.5
2729
micronautSerdeJacksonVersion=2.11.0
2830
springSecurityCoreVersion=7.0.0-SNAPSHOT

grails-test-examples/gorm/build.gradle

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ dependencies {
2727
implementation "org.grails:grails-web-boot"
2828

2929
implementation "org.grails.plugins:hibernate5"
30+
runtimeOnly "org.hibernate:hibernate-ehcache:$hibernateVersion", {
31+
// exclude javax variant of hibernate-core
32+
exclude group: 'org.hibernate', module: 'hibernate-core'
33+
}
34+
runtimeOnly "org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec:$jbossTransactionApiVersion", {
35+
// required for hibernate-ehcache to work with javax variant of hibernate-core excluded
36+
}
3037
implementation "org.grails.plugins:cache"
3138

3239
runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails"

grails-test-examples/hyphenated/build.gradle

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ dependencies {
2727
implementation "org.grails:grails-web-boot"
2828

2929
implementation "org.grails.plugins:hibernate5"
30+
runtimeOnly "org.hibernate:hibernate-ehcache:$hibernateVersion", {
31+
// exclude javax variant of hibernate-core
32+
exclude group: 'org.hibernate', module: 'hibernate-core'
33+
}
34+
runtimeOnly "org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec:$jbossTransactionApiVersion", {
35+
// required for hibernate-ehcache to work with javax variant of hibernate-core excluded
36+
}
3037
implementation "org.grails.plugins:cache"
3138

3239
runtimeOnly "org.grails.plugins:scaffolding"

0 commit comments

Comments
 (0)