Skip to content

Commit da402ca

Browse files
committed
Update Groovy to 3.0.3 and switch from groovy-all to single jars
As a side-effect, we have to update Spock to 2.0-M2 Closes apache#590
1 parent 20bc145 commit da402ca

6 files changed

Lines changed: 18 additions & 5 deletions

File tree

checksum.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
<trusted-key id='411063a3a0ffd119' group='org.apache-extras.beanshell' />
7676
<trusted-key id='87a7f75a6a8ba5fc' group='org.apache.activemq' />
7777
<trusted-key id='bff2ee42c8282e76' group='org.apache.activemq' />
78+
<trusted-key id='ddbcc1270a29d081' group='org.apache.ant' />
7879
<trusted-key id='86fdc7e2a11262cb' group='org.apache.bcel' />
7980
<trusted-key id='3faad2cd5ecbb314' group='org.apache.commons' />
8081
<trusted-key id='64a16faaec16a4be' group='org.apache.commons' />
@@ -140,6 +141,7 @@
140141
<trusted-key id='cfca4a29d26468de' group='org.sonarsource.scanner.api' />
141142
<trusted-key id='cfca4a29d26468de' group='org.sonarsource.scanner.gradle' />
142143
<trusted-key id='72fefd1572eb75e1' group='org.spockframework' />
144+
<trusted-key id='af0a94402ea0a67f' group='org.spockframework' />
143145
<trusted-key id='9a2c7a98e457c53d' group='org.springframework' />
144146
<trusted-key id='e4b53844e02b191b' group='org.swinglabs' />
145147
<trusted-key id='a2115ae15f6b8b72' group='org.xmlunit' />

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ freemarker.version=2.3.30
7474
ftplet-api.version=1.1.1
7575
ftpserver-core.version=1.1.1
7676
geronimo-jms_1.1_spec.version=1.1.1
77-
groovy-all.version=2.4.18
77+
groovy.version=3.0.3
7878
hamcrest.version=2.2
7979
hamcrest-date.version=2.0.7
8080
hsqldb.version=2.5.0
@@ -111,7 +111,7 @@ rhino.version=1.7.12
111111
rsyntaxtextarea.version=3.1.0
112112
Saxon-HE.version=9.9.1-7
113113
slf4j.version=1.7.30
114-
spock-core.version=1.2-groovy-2.4
114+
spock-core.version=2.0-M2-groovy-3.0
115115
springframework.version=4.3.17.RELEASE
116116
svgSalamander.version=1.1.2.1
117117
tika.version=1.24.1

lib/aareadme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ dnsjava-2.1.9
102102
https://github.com/dnsjava/dnsjava
103103
- DNSCacheManager
104104

105-
groovy-all-2.4.16
105+
groovy-3.0.3
106106
----------------------
107107
Advised scripting language for JSR223 Test Elements
108108

src/bom/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ fun DependencyConstraintHandlerScope.runtimev(
3939
) =
4040
"runtime"(notation + ":" + versionProp.v)
4141

42+
javaPlatform {
43+
allowDependencies()
44+
}
45+
4246
dependencies {
47+
api(platform("org.codehaus.groovy:groovy-bom:${"groovy".v}"))
48+
4349
// Parenthesis are needed here: https://github.com/gradle/gradle/issues/9248
4450
(constraints) {
4551
// api means "the dependency is for both compilation and runtime"
@@ -87,7 +93,6 @@ dependencies {
8793
apiv("javax.mail:mail")
8894
apiv("jcharts:jcharts")
8995
apiv("junit:junit", "junit4")
90-
apiv("org.codehaus.groovy:groovy-all")
9196
apiv("org.junit.jupiter:junit-jupiter-api", "junit5")
9297
apiv("org.junit.jupiter:junit-jupiter-params", "junit5")
9398
runtimev("org.junit.jupiter:junit-jupiter-engine", "junit5")

src/core/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,14 @@ dependencies {
5757
because("XPathUtil: throws SaxonApiException")
5858
}
5959

60-
runtimeOnly("org.codehaus.groovy:groovy-all") {
60+
runtimeOnly("org.codehaus.groovy:groovy") {
6161
because("Groovy is a default JSR232 engine")
6262
}
63+
arrayOf("datetime", "jmx", "json", "jsr223", "sql", "templates").forEach {
64+
runtimeOnly("org.codehaus.groovy:groovy-$it") {
65+
because("Groovy is a default JSR232 engine")
66+
}
67+
}
6368

6469
implementation("com.fasterxml.jackson.core:jackson-annotations")
6570
implementation("com.fasterxml.jackson.core:jackson-core")

xdocs/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ Counter Config, XPath2 Extractor, Function Helper Dialog, Search popup, JMS Elem
186186
<li><bug>64276</bug>Search popup: Improve UX</li>
187187
<li><pr>573</pr>Improve the startup time: skip test plan UI initialization</li>
188188
<li><pr>585</pr>Added JEXL3 as a syntax alias for JSyntaxTextArea. Contributed by drivera-armedia (https://github.com/drivera-armedia)</li>
189+
<li><pr>590</pr>Update Groovy to 3.0.3.</li>
189190
</ul>
190191

191192
<ch_section>Non-functional changes</ch_section>

0 commit comments

Comments
 (0)