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

Commit 7e5e260

Browse files
authored
Move all versions numbers to gradle.properties and update dependencies (#893)
* Move all versions to gradle.properties and update dependencies to latest compatible version
1 parent 8695779 commit 7e5e260

File tree

10 files changed

+49
-41
lines changed

10 files changed

+49
-41
lines changed

boot-plugin/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ dependencies {
1212
testImplementation "org.spockframework:spock-core:$spockVersion"
1313

1414
testRuntimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
15-
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:8.5.2"
15+
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
1616
testRuntimeOnly "com.h2database:h2:$h2Version"
1717
}

build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ buildscript {
44
maven { url "https://plugins.gradle.org/m2/" }
55
}
66
dependencies {
7-
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
8-
classpath "io.github.groovylang.groovydoc:groovydoc-gradle-plugin:1.0.1"
7+
classpath "io.github.gradle-nexus:publish-plugin:$gradleNexusPublishPluginVersion"
8+
classpath "io.github.groovylang.groovydoc:groovydoc-gradle-plugin:$groovydocGradlePluginVersion"
99
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
10-
classpath "org.grails.plugins:views-gradle:3.2.3"
11-
classpath"org.asciidoctor:asciidoctor-gradle-jvm:4.0.0"
12-
classpath "com.github.erdi:webdriver-binaries-gradle-plugin:3.2"
10+
classpath "org.grails.plugins:views-gradle:$viewsGradleVersion"
11+
classpath "org.asciidoctor:asciidoctor-gradle-jvm:$asciidoctorGradleVersion"
12+
classpath "com.github.erdi:webdriver-binaries-gradle-plugin:$webdriverBinariesPluginVersion"
1313
}
1414

1515
configurations.configureEach {
@@ -149,11 +149,11 @@ subprojects { Project subproject ->
149149
dependencies {
150150
testImplementation "jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationApiVersion"
151151
testImplementation "io.micrometer:micrometer-core:latest.integration"
152-
testImplementation "io.projectreactor:reactor-test:3.6.5"
152+
testImplementation "io.projectreactor:reactor-test:$projectreactorVersion"
153153
testImplementation "org.apache.groovy:groovy-test-junit5:$groovyVersion"
154154
testImplementation("org.spockframework:spock-core:$spockVersion") { transitive = false}
155155
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
156-
testImplementation "org.junit.platform:junit-platform-runner:1.10.2"
156+
testImplementation "org.junit.platform:junit-platform-runner:$junitJupiterPlatformVersion"
157157
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
158158
}
159159

@@ -257,7 +257,7 @@ subprojects { Project subproject ->
257257
testImplementation "org.apache.groovy:groovy-test-junit5:$groovyVersion"
258258
testImplementation("org.spockframework:spock-core:$spockVersion") { transitive = false}
259259
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
260-
testImplementation "org.junit.platform:junit-platform-runner:1.10.2"
260+
testImplementation "org.junit.platform:junit-platform-runner:$junitJupiterPlatformVersion"
261261
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
262262
}
263263

examples/grails-data-service/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
implementation "org.hibernate:hibernate-core-jakarta:$hibernate5Version"
2323
implementation "org.grails.plugins:views-json"
2424
implementation "org.grails.plugins:views-json-templates"
25-
implementation 'org.grails.plugins:spring-security-rest:3.0.1'
25+
implementation "org.grails.plugins:spring-security-rest:$grailsSpringSecurityRestVersion"
2626
profile "org.grails.profiles:rest-api"
2727
runtimeOnly "org.apache.tomcat:tomcat-jdbc"
2828
testImplementation "org.grails:grails-gorm-testing-support:$testingSupportVersion"

examples/grails3-database-per-tenant/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies {
2424
implementation "org.grails:grails-dependencies:$grailsVersion", {
2525
exclude module:'grails-datastore-simple'
2626
}
27-
implementation("org.ysb33r.gradle:grolifant50:2.0.2")
27+
implementation "org.ysb33r.gradle:grolifant80:$grolifantVersion"
2828
implementation "org.grails:grails-web-boot:$grailsVersion"
2929
implementation project(":grails-plugin")
3030

examples/grails3-multiple-datasources/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group "examples"
22

33
configurations.all {
44
resolutionStrategy.dependencySubstitution {
5-
substitute(module("org.codehaus.groovy:groovy-bom:3.0.8")).using(module("org.apache.groovy:groovy-bom:4.0.22"))
5+
substitute(module("org.codehaus.groovy:groovy-bom:3.0.8")).using(module("org.apache.groovy:groovy-bom:$groovyVersion"))
66
}
77
}
88

examples/spring-boot-hibernate5/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies {
3232

3333
runtimeOnly "com.h2database:h2:$h2Version"
3434
runtimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
35-
runtimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:8.5.2"
35+
runtimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
3636
runtimeOnly "org.slf4j:slf4j-api:$slf4jVersion"
3737

3838
testImplementation "org.spockframework:spock-core:$spockVersion"

examples/standalone-hibernate5/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies {
66
implementation project(":grails-datastore-gorm-hibernate5")
77
runtimeOnly "com.h2database:h2:$h2Version"
88
runtimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
9-
runtimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:8.5.2"
9+
runtimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
1010
runtimeOnly "org.slf4j:slf4j-api:$slf4jVersion"
1111
implementation "org.grails:grails-core:$grailsVersion"
1212
testImplementation "org.spockframework:spock-core:$spockVersion"

gradle.properties

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
projectVersion=9.0.0-SNAPSHOT
2+
#4.0.2-4.0.3 breaks org.ysb33r.gradle:grolifant for chromedriver
3+
asciidoctorGradleVersion=4.0.1
24
assetPipelineVersion=5.0.1
5+
ehcacheVersion=3.10.8
6+
fieldsVersion=5.0.3
37
gebVersion=7.0
48
gebPluginVersion=4.0.0
9+
grolifantVersion=4.0.0
510
gormVersion=9.0.0-SNAPSHOT
11+
gradleNexusPublishPluginVersion=2.0.0
612
grailsGradlePluginVersion=7.0.0-SNAPSHOT
713
grailsShellVersion=7.0.0-SNAPSHOT
8-
groovyVersion=4.0.22
14+
grailsSpringSecurityRestVersion=3.0.1
15+
grailsVersion=7.0.0-SNAPSHOT
16+
groovydocGradlePluginVersion=1.0.1
17+
groovyVersion=4.0.23
18+
# Tests are built for 1.4.200, so stick with older version
919
h2Version=1.4.200
1020
hibernate5Version=5.6.15.Final
1121
hibernateValidatorVersion=7.0.5.Final
@@ -15,32 +25,30 @@ jakartaPersistenceVersion=3.1.0
1525
jakartaTransactionVersion=2.0.1
1626
jakartaAnnotationApiVersion=3.0.0
1727
jansiVersion=2.4.1
18-
javaParserCoreVersion=3.25.9
19-
junitJupiterVersion=5.9.3
20-
junitJupiterPlatformVersion=1.9.3
28+
javaParserCoreVersion=3.25.10
29+
junitJupiterVersion=5.11.0
30+
junitJupiterPlatformVersion=1.11.0
2131
picocliVersion=4.7.6
22-
pluginGrailsVersion=7.0.0-SNAPSHOT
32+
projectreactorVersion=3.6.10
33+
scaffoldingVersion=6.0.0-SNAPSHOT
2334
seleniumSafariDriverVersion=4.23.1
2435
seleniumVersion=4.23.1
2536
servletApiVersion=6.0.0
26-
slf4jVersion=1.7.36
27-
snakeyamlVersion=2.2
37+
snakeyamlVersion=2.3
38+
slf4jVersion=2.0.16
2839
spockVersion=2.3-groovy-4.0
29-
springBootVersion=3.2.6
30-
springVersion=6.1.12
40+
springBootVersion=3.3.4
41+
springVersion=6.1.13
42+
testingSupportVersion=4.0.0-SNAPSHOT
3143
tomcatLog4jVersion=8.5.2
3244
tomcatVersion=10.1.29
45+
viewsGradleVersion=4.0.0-SNAPSHOT
46+
webdriverBinariesPluginVersion=3.2
47+
chromeDriverVersion=126.0.6478.126
48+
geckodriverVersion=0.32.2
49+
edgeDriverVersion=110.0.1587.57
3350

34-
# Following are used only for example projects
35-
fieldsVersion=5.0.3
36-
grailsVersion=7.0.0-SNAPSHOT
37-
micrometer.version=1.8.0
38-
scaffoldingVersion=6.0.0-SNAPSHOT
39-
testingSupportVersion=4.0.0-SNAPSHOT
4051
org.gradle.caching=true
4152
org.gradle.parallel=false
4253
org.gradle.daemon=true
43-
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1536M -XX:MaxMetaspaceSize=512M
44-
chromeDriverVersion=126.0.6478.126
45-
geckodriverVersion=0.32.2
46-
edgeDriverVersion=110.0.1587.57
54+
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1536M -XX:MaxMetaspaceSize=512M

grails-datastore-gorm-hibernate5/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies {
1919
exclude group:'org.slf4j', module:'slf4j-api'
2020
}
2121

22-
compileOnly ("net.sf.ehcache:ehcache-core:2.6.11") {
22+
compileOnly ("org.ehcache:ehcache:$ehcacheVersion") {
2323
exclude group: 'commons-logging', module:'commons-logging'
2424
}
2525

@@ -44,7 +44,7 @@ dependencies {
4444
}
4545
testImplementation "com.h2database:h2:$h2Version"
4646

47-
testImplementation "net.sf.ehcache:ehcache-core:2.6.11"
47+
testImplementation "org.ehcache:ehcache:$ehcacheVersion"
4848
testImplementation "org.hibernate:hibernate-ehcache:$hibernate5Version"
4949

5050
// groovy proxy fixes bytebuddy to be a bit smarter when it comes to groovy metaClass

grails-plugin/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ configurations.all {
1212
}
1313

1414
dependencies {
15-
documentation ("org.grails:grails-core:$pluginGrailsVersion")
16-
documentation ("org.grails:grails-bootstrap:$pluginGrailsVersion")
17-
documentation ("org.grails:grails-spring:$pluginGrailsVersion")
15+
documentation ("org.grails:grails-core:$grailsVersion")
16+
documentation ("org.grails:grails-bootstrap:$grailsVersion")
17+
documentation ("org.grails:grails-spring:$grailsVersion")
1818
documentation ("com.github.javaparser:javaparser-core:$javaParserCoreVersion")
1919

20-
compileOnly("org.grails:grails-bootstrap:$pluginGrailsVersion")
21-
compileOnly("org.grails:grails-core:$pluginGrailsVersion")
20+
compileOnly("org.grails:grails-bootstrap:$grailsVersion")
21+
compileOnly("org.grails:grails-core:$grailsVersion")
2222
compileOnly "org.spockframework:spock-core:$spockVersion", {
2323
exclude group: "junit", module: "junit-dep"
2424
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
@@ -44,7 +44,7 @@ dependencies {
4444
testImplementation "org.grails:grails-gorm-testing-support:$testingSupportVersion"
4545
testRuntimeOnly "com.h2database:h2:$h2Version"
4646
testRuntimeOnly "org.apache.tomcat:tomcat-jdbc:$tomcatVersion"
47-
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:8.5.2"
47+
testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatLog4jVersion"
4848
testRuntimeOnly "org.springframework:spring-aop:$springVersion"
4949
testRuntimeOnly "org.springframework:spring-expression:$springVersion"
5050
}

0 commit comments

Comments
 (0)