Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion examples/grails3-hibernate5-mongodb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ dependencies {
runtimeOnly 'org.grails.plugins:scaffolding'
runtimeOnly 'org.grails:grails-plugin-i18n'
runtimeOnly 'org.grails:grails-plugin-url-mappings'
runtimeOnly 'org.hibernate:hibernate-ehcache'
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
}
runtimeOnly 'org.springframework.boot:spring-boot-autoconfigure'
runtimeOnly 'org.springframework.boot:spring-boot-starter-logging'
runtimeOnly 'org.springframework.boot:spring-boot-starter-tomcat'
Expand Down
7 changes: 0 additions & 7 deletions examples/gson-templates/grails-app/conf/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ grails:
taglib: none
staticparts: none
---
hibernate:
cache:
queries: false
use_second_level_cache: false
use_query_cache: false
#region.factory_class: 'org.hibernate.cache.ehcache.EhCacheRegionFactory'

endpoints:
jmx:
unique-names: true
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ testcontainersMongodbVersion=1.20.1
# for example apps only
grailsSpringSecurityCoreVersion=7.0.0-SNAPSHOT
grailsSpringSecurityRestVersion=6.0.0-SNAPSHOT
hibernateVersion=5.6.15.Final
jbossTransactionApiVersion=2.0.0.Final

# This prevents the Grails Gradle Plugin from unnecessarily excluding slf4j-simple in the generated POMs
# https://github.com/grails/grails-gradle-plugin/issues/222
Expand Down
Loading