Skip to content

Commit 6da9ade

Browse files
pditommasoclaude
andauthored
Upgrade test deps to Groovy 4, Spock 2.4, JUnit 5.11 (#108)
* Update run script Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> * Upgrade test deps to Groovy 4.0.24, Spock 2.4, JUnit 5.11.4 - Groovy: org.codehaus.groovy 3.0.21 → org.apache.groovy 4.0.24 - Spock: 2.3-groovy-3.0 → 2.4-groovy-4.0 - JUnit Jupiter: 5.9.1 → 5.11.4 (required by Spock 2.4) - Add junit-platform-launcher runtime dependency - Replace cglib-nodep/objenesis with byte-buddy for mocking - Remove spock-junit4 (no longer needed) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 651a8a2 commit 6da9ade

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

app/build.gradle

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ dependencies {
3232
// bump commons-io version to address security vulnerabilities
3333
runtimeOnly 'commons-io:commons-io:2.18.0'
3434

35-
testImplementation "org.codehaus.groovy:groovy:3.0.21"
36-
testImplementation "org.codehaus.groovy:groovy-nio:3.0.21"
37-
testImplementation ("org.codehaus.groovy:groovy-test:3.0.21")
38-
testImplementation ("org.codehaus.groovy:groovy-json:3.0.21")
39-
testImplementation ("cglib:cglib-nodep:3.3.0")
40-
testImplementation ("org.objenesis:objenesis:3.2")
41-
testImplementation ("org.spockframework:spock-core:2.3-groovy-3.0") { exclude group: 'org.codehaus.groovy'; exclude group: 'net.bytebuddy' }
42-
testImplementation ('org.spockframework:spock-junit4:2.3-groovy-3.0') { exclude group: 'org.codehaus.groovy'; exclude group: 'net.bytebuddy' }
35+
testImplementation "org.apache.groovy:groovy:4.0.24"
36+
testImplementation "org.apache.groovy:groovy-nio:4.0.24"
37+
testImplementation "org.apache.groovy:groovy-test:4.0.24"
38+
testImplementation "org.apache.groovy:groovy-json:4.0.24"
39+
testImplementation "net.bytebuddy:byte-buddy:1.14.11"
40+
testImplementation ("org.spockframework:spock-core:2.4-groovy-4.0") { exclude group: 'org.apache.groovy' }
4341
}
4442

4543
test {

buildSrc/src/main/groovy/io.seqera.wave.cli.java-common-conventions.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ dependencies {
4343
implementation "ch.qos.logback:logback-core:1.5.20"
4444

4545
// Use JUnit Jupiter for testing.
46-
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1'
46+
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
47+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
4748
}
4849

4950
tasks.named('test') {

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
#
1717

1818
args="${@:--h}"
19-
./gradlew run --rerun-tasks --args="$args"
19+
./gradlew run --args="$args"

0 commit comments

Comments
 (0)