Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 44a11d5

Browse files
authored
Merge pull request #945 from grails/use-more-grails-bom-version
use more versions from grails-bom
2 parents c4dc26b + f4fabfd commit 44a11d5

File tree

7 files changed

+45
-58
lines changed

7 files changed

+45
-58
lines changed

boot-plugin/build.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
dependencies {
2-
compileOnly "org.grails:grails-shell:$grailsShellVersion", {
2+
compileOnly "org.grails:grails-shell", {
33
exclude group:'org.apache.groovy', module:'groovy'
44
}
5-
api "org.apache.groovy:groovy:$groovyVersion"
5+
api "org.apache.groovy:groovy"
66
api "org.springframework.boot:spring-boot-autoconfigure"
77
api project(":grails-datastore-gorm-hibernate5")
88

9-
testImplementation "org.grails:grails-shell:$grailsShellVersion", {
9+
testImplementation "org.grails:grails-shell", {
1010
exclude group:'org.apache.groovy', module:'groovy'
1111
}
12-
testImplementation "org.spockframework:spock-core:$spockVersion"
12+
testImplementation "org.spockframework:spock-core"
1313

14-
testRuntimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
15-
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
14+
testRuntimeOnly "org.apache.tomcat:tomcat-jdbc"
1615
testRuntimeOnly "com.h2database:h2"
1716
}

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ ext {
2929
ext."signing.keyId" = System.getenv("SIGNING_KEY") ?: project.hasProperty("signing.keyId") ? project.getProperty('signing.keyId') : null
3030
ext."signing.password" = System.getenv("SIGNING_PASSPHRASE") ?: project.hasProperty("signing.password") ? project.getProperty('signing.password') : null
3131
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ? project.getProperty('signing.secretKeyRingFile') : null
32-
ext['junit-jupiter.version'] = junitJupiterVersion
3332

3433
if (isReleaseVersion) {
3534
apply plugin: 'maven-publish'

docs/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ apply plugin: 'groovy'
1818
apply plugin: 'org.asciidoctor.jvm.convert'
1919

2020
dependencies {
21-
documentation "org.grails:grails-core:$grailsVersion"
22-
documentation "org.grails:grails-bootstrap:$grailsVersion"
23-
documentation "org.grails:grails-spring:$grailsVersion"
21+
documentation "org.grails:grails-core"
22+
documentation "org.grails:grails-bootstrap"
23+
documentation "org.grails:grails-spring"
2424
documentation "info.picocli:picocli:$picocliVersion"
25-
documentation "org.fusesource.jansi:jansi:$jansiVersion"
26-
documentation "org.apache.groovy:groovy-dateutil:$groovyVersion"
27-
documentation "com.github.javaparser:javaparser-core:$javaParserCoreVersion"
25+
documentation "org.fusesource.jansi:jansi"
26+
documentation "org.apache.groovy:groovy-dateutil"
27+
documentation "com.github.javaparser:javaparser-core"
2828

29-
documentation "org.fusesource.jansi:jansi:$jansiVersion"
29+
documentation "org.fusesource.jansi:jansi"
3030
for(p in coreProjects) {
31-
documentation "org.grails:grails-datastore-$p:$gormVersion"
31+
documentation "org.grails:grails-datastore-$p"
3232
}
3333
project.rootProject.subprojects.each { subproject ->
3434
if(subproject.name != "docs" && !subproject.name.startsWith('examples')) {

examples/grails-hibernate-groovy-proxy/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ dependencies {
1010

1111
implementation project(':grails-plugin')
1212
implementation 'org.grails:grails-core'
13-
implementation "org.yakworks:hibernate-groovy-proxy:$yakworksHibernateGroovyProxyVersion"
13+
implementation "org.yakworks:hibernate-groovy-proxy:$yakworksHibernateGroovyProxyVersion", {
14+
exclude group: "org.codehaus.groovy", module: "groovy"
15+
}
1416

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

gradle.properties

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,16 @@
11
projectVersion=9.0.0-SNAPSHOT
22
asciidoctorGradleVersion=4.0.1
3-
grolifantVersion=4.0.0
43
gormVersion=9.0.0-SNAPSHOT
54
gradleNexusPublishPluginVersion=2.0.0
65
grailsGradlePluginVersion=7.0.0-SNAPSHOT
7-
grailsShellVersion=7.0.0-SNAPSHOT
8-
grailsSpringSecurityRestVersion=6.0.0-SNAPSHOT
96
grailsVersion=7.0.0-SNAPSHOT
107
groovydocGradlePluginVersion=1.0.1
118
groovyVersion=4.0.24
129
hibernateVersion=5.6.15.Final
13-
hibernateValidatorVersion=8.0.1.Final
1410
yakworksHibernateGroovyProxyVersion=1.1
15-
jansiVersion=2.4.1
16-
javaParserCoreVersion=3.26.2
17-
junitJupiterVersion=5.11.3
1811
micronautPlatformVersion=4.6.3
1912
picocliVersion=4.7.6
20-
snakeYamlVersion=2.3
21-
slf4jVersion=2.0.16
22-
spockVersion=2.3-groovy-4.0
23-
springBootGradlePluginVersion=3.3.5
24-
testingSupportVersion=4.0.0-SNAPSHOT
25-
tomcatLog4jVersion=8.5.2
26-
tomcatVersion=10.1.33
13+
springBootGradlePluginVersion=3.4.1
2714
viewsGradleVersion=4.0.0-SNAPSHOT
2815

2916
org.gradle.caching=true

grails-datastore-gorm-hibernate/build.gradle

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
dependencies {
2-
api "org.slf4j:slf4j-api:$slf4jVersion"
2+
api "org.slf4j:slf4j-api"
33

4-
api "org.apache.groovy:groovy:$groovyVersion"
4+
api "org.apache.groovy:groovy"
55
api "org.grails:grails-datastore-gorm"
66
api "org.springframework:spring-orm"
7-
api("org.hibernate:hibernate-core-jakarta:$hibernateVersion") {
7+
api "org.hibernate:hibernate-core-jakarta:$hibernateVersion", {
88
exclude group:'commons-logging', module:'commons-logging'
99
exclude group:'com.h2database', module:'h2'
1010
exclude group:'commons-collections', module:'commons-collections'
@@ -13,13 +13,13 @@ dependencies {
1313
exclude group:'org.slf4j', module:'slf4j-log4j12'
1414
exclude group:'xml-apis', module:'xml-apis'
1515
}
16-
api("org.hibernate:hibernate-validator:$hibernateValidatorVersion") {
16+
api "org.hibernate.validator:hibernate-validator", {
1717
exclude group:'commons-logging', module:'commons-logging'
1818
exclude group:'commons-collections', module:'commons-collections'
1919
exclude group:'org.slf4j', module:'slf4j-api'
2020
}
2121

22-
compileOnly ("org.hibernate:hibernate-ehcache:$hibernateVersion") {
22+
compileOnly "org.hibernate:hibernate-ehcache:$hibernateVersion", {
2323
exclude group:'commons-collections', module:'commons-collections'
2424
exclude group:'commons-logging', module:'commons-logging'
2525
exclude group:'com.h2database', module:'h2'
@@ -32,9 +32,9 @@ dependencies {
3232
exclude group:'xml-apis', module:'xml-apis'
3333
}
3434

35-
testImplementation "org.apache.groovy:groovy-test-junit5:$groovyVersion"
36-
testImplementation "org.apache.groovy:groovy-sql:$groovyVersion"
37-
testImplementation "org.apache.groovy:groovy-json:$groovyVersion"
35+
testImplementation "org.apache.groovy:groovy-test-junit5"
36+
testImplementation "org.apache.groovy:groovy-sql"
37+
testImplementation "org.apache.groovy:groovy-json"
3838
testImplementation "org.grails:grails-datastore-gorm-tck:$gormVersion", {
3939
exclude group: "org.spockframework"
4040
}
@@ -43,16 +43,17 @@ dependencies {
4343
testImplementation "org.hibernate:hibernate-ehcache:$hibernateVersion"
4444

4545
// groovy proxy fixes bytebuddy to be a bit smarter when it comes to groovy metaClass
46-
testImplementation "org.yakworks:hibernate-groovy-proxy:$yakworksHibernateGroovyProxyVersion"
46+
testImplementation "org.yakworks:hibernate-groovy-proxy:$yakworksHibernateGroovyProxyVersion", {
47+
exclude group: "org.codehaus.groovy", module: "groovy"
48+
}
4749

48-
testImplementation "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
50+
testImplementation "org.apache.tomcat:tomcat-jdbc"
4951
testRuntimeOnly "org.springframework:spring-aop"
50-
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
5152

52-
testRuntimeOnly "org.slf4j:slf4j-simple:$slf4jVersion"
53-
testRuntimeOnly "org.slf4j:jcl-over-slf4j:$slf4jVersion"
53+
testRuntimeOnly "org.slf4j:slf4j-simple"
54+
testRuntimeOnly "org.slf4j:jcl-over-slf4j"
5455
// The groovydoc task needs the Hibernate 4.x jars in the classpath
55-
documentation("org.hibernate:hibernate-core-jakarta:${hibernateVersion}")
56+
documentation "org.hibernate:hibernate-core-jakarta:${hibernateVersion}"
5657
}
5758

5859
test {

grails-plugin/build.gradle

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ configurations.all {
99
}
1010

1111
dependencies {
12-
documentation ("org.grails:grails-core:$grailsVersion")
13-
documentation ("org.grails:grails-bootstrap:$grailsVersion")
14-
documentation ("org.grails:grails-spring:$grailsVersion")
15-
documentation ("com.github.javaparser:javaparser-core:$javaParserCoreVersion")
12+
documentation "org.grails:grails-core"
13+
documentation "org.grails:grails-bootstrap"
14+
documentation "org.grails:grails-spring"
15+
documentation "com.github.javaparser:javaparser-core"
1616

17-
compileOnly("org.grails:grails-bootstrap:$grailsVersion")
18-
compileOnly("org.grails:grails-core:$grailsVersion")
19-
compileOnly "org.spockframework:spock-core:$spockVersion", {
17+
compileOnly "org.grails:grails-bootstrap"
18+
compileOnly "org.grails:grails-core"
19+
compileOnly "org.spockframework:spock-core", {
2020
exclude group: "junit", module: "junit-dep"
2121
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
2222
exclude group: 'org.hamcrest', module: 'hamcrest-core'
2323
}
2424

2525
api "org.springframework.boot:spring-boot"
2626
api "org.springframework:spring-orm"
27-
api "org.hibernate:hibernate-core-jakarta:${hibernateVersion}"
27+
api "org.hibernate:hibernate-core-jakarta:$hibernateVersion"
2828
api "org.hibernate:hibernate-ehcache:$hibernateVersion"
29-
api "org.grails:grails-datastore-web:$gormVersion"
30-
api "org.grails:grails-datastore-gorm-support:$gormVersion"
29+
api "org.grails:grails-datastore-web"
30+
api "org.grails:grails-datastore-gorm-support"
3131
api project(":grails-datastore-gorm-hibernate5"), {
3232
exclude group:'org.springframework', module:'spring-context'
3333
exclude group:'org.springframework', module:'spring-core'
@@ -38,11 +38,10 @@ dependencies {
3838
exclude group:'org.grails', module:'grails-core'
3939
exclude group:'javax.transaction', module:'jta'
4040
}
41-
testRuntimeOnly "org.yaml:snakeyaml:$snakeYamlVersion"
42-
testImplementation "org.grails:grails-gorm-testing-support:$testingSupportVersion"
41+
testRuntimeOnly "org.yaml:snakeyaml"
42+
testImplementation "org.grails:grails-gorm-testing-support"
4343
testRuntimeOnly "com.h2database:h2"
44-
testRuntimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
45-
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
44+
testRuntimeOnly "org.apache.tomcat:tomcat-jdbc"
4645
testRuntimeOnly "org.springframework:spring-aop"
4746
testRuntimeOnly "org.springframework:spring-expression"
4847
}

0 commit comments

Comments
 (0)