Skip to content

Commit

Permalink
Merge pull request #14032 from grails/hibernate-ehcache-breaking-change
Browse files Browse the repository at this point in the history
Update test projects to set hibernate-ehcache dependency
  • Loading branch information
jamesfredley authored Feb 20, 2025
2 parents 3c5db4b + ecafcca commit 20793bf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ org.gradle.daemon=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1536M -XX:MaxMetaspaceSize=1024M

# libraries only specific to test apps, these should not be exposed
hibernateVersion=5.6.15.Final
jbossTransactionApiVersion=2.0.0.Final
micronautVersion=4.6.5
micronautSerdeJacksonVersion=2.11.0
springSecurityCoreVersion=7.0.0-SNAPSHOT
Expand Down
7 changes: 7 additions & 0 deletions grails-test-examples/gorm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ dependencies {
implementation "org.grails:grails-web-boot"

implementation "org.grails.plugins:hibernate5"
runtimeOnly "org.hibernate:hibernate-ehcache:$hibernateVersion", {
// exclude javax variant of hibernate-core
exclude group: 'org.hibernate', module: 'hibernate-core'
}
runtimeOnly "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
}
implementation "org.grails.plugins:cache"

runtimeOnly "com.bertramlabs.plugins:asset-pipeline-grails"
Expand Down
7 changes: 7 additions & 0 deletions grails-test-examples/hyphenated/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ dependencies {
implementation "org.grails:grails-web-boot"

implementation "org.grails.plugins:hibernate5"
runtimeOnly "org.hibernate:hibernate-ehcache:$hibernateVersion", {
// exclude javax variant of hibernate-core
exclude group: 'org.hibernate', module: 'hibernate-core'
}
runtimeOnly "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
}
implementation "org.grails.plugins:cache"

runtimeOnly "org.grails.plugins:scaffolding"
Expand Down

0 comments on commit 20793bf

Please sign in to comment.