Skip to content

Commit

Permalink
chore: Cleanup examples-standalone-hibernate5
Browse files Browse the repository at this point in the history
Use correct dependencies and narrow the scopes. Switch from `tomcat-jdbc` to `HikariCP` as this will be the new default. Apply Gradle plugins in subproject instead of having logic and conditions in the root build file apply them - much easier to see what's being applied.
  • Loading branch information
matrei committed Nov 8, 2024
1 parent 9192b72 commit 33a0702
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions examples/standalone-hibernate5/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
group 'examples'
group = 'examples'

apply plugin:"groovy"
apply plugin: 'groovy'

dependencies {

implementation platform("org.grails:grails-bom:$grailsVersion")
implementation project(":grails-datastore-gorm-hibernate5")
runtimeOnly "com.h2database:h2"
runtimeOnly "org.apache.tomcat:tomcat-jdbc"
runtimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
runtimeOnly "org.slf4j:slf4j-api"
implementation "org.grails:grails-core"
testImplementation "org.spockframework:spock-core"
implementation project(':grails-datastore-gorm-hibernate5')
implementation 'org.springframework:spring-tx'

runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.zaxxer:HikariCP'

testImplementation 'org.spockframework:spock-core'

testRuntimeOnly "org.slf4j:slf4j-simple"
testRuntimeOnly 'org.slf4j:slf4j-simple'
}

0 comments on commit 33a0702

Please sign in to comment.