Skip to content

Commit dc95940

Browse files
authored
Merge pull request #1055 from grails/hibernate-ehcache-breaking-change
Update s2 quickstart to set hibernate-ehcache dependency
2 parents ebb5782 + d85257a commit dc95940

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

plugin/src/docs/code/s2-quickstart/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ dependencies {
4343
implementation "org.grails.plugins:async"
4444
implementation "org.grails.plugins:scaffolding"
4545
implementation "org.grails.plugins:hibernate5"
46-
implementation "org.hibernate:hibernate-core:5.6.15.Final"
46+
runtimeOnly "org.hibernate:hibernate-ehcache:$hibernateVersion", {
47+
// exclude javax variant of hibernate-core
48+
exclude group: 'org.hibernate', module: 'hibernate-core'
49+
}
50+
runtimeOnly "org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec:$jbossTransactionApiVersion", {
51+
// required for hibernate-ehcache to work with javax variant of hibernate-core excluded
52+
}
4753
implementation "org.grails.plugins:events"
4854
implementation "org.grails.plugins:gsp"
4955
profile "org.grails.profiles:web"

plugin/src/docs/code/s2-quickstart/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ grailsVersion=5.2.5
22
grailsGradlePluginVersion=6.1.2
33
groovyVersion=3.0.11
44
gorm.version=7.3.2
5+
hibernateVersion=5.6.15.Final
6+
jbossTransactionApiVersion=2.0.0.Final
57
org.gradle.daemon=true
68
org.gradle.parallel=true
79
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M

0 commit comments

Comments
 (0)