Skip to content

Commit 407cab1

Browse files
authored
Update spock dependencies (#6221)
Currently, `docs/examples/spock/redis` is not running (since 89a3368). After the dependency was upgraded, it stopped running unless `useJUnitPlatform()` is added. Also, `spock` module is adding two additional dependencies which are required since `spock-core` version `2.2`.
1 parent b48a0fd commit 407cab1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/examples/spock/redis/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ plugins {
55

66
dependencies {
77
api "io.lettuce:lettuce-core:6.2.1.RELEASE"
8-
testImplementation 'org.spockframework:spock-core:2.3-groovy-4.0'
8+
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0'
99
testImplementation project(":spock")
1010
testImplementation 'ch.qos.logback:logback-classic:1.3.4'
1111
}
12+
13+
test {
14+
useJUnitPlatform()
15+
}

modules/spock/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description = "Testcontainers :: Spock-Extension"
66

77
dependencies {
88
api project(':testcontainers')
9-
api 'org.spockframework:spock-core:2.1-groovy-3.0'
9+
api 'org.spockframework:spock-core:2.3-groovy-3.0'
1010

1111
testImplementation project(':selenium')
1212
testImplementation project(':mysql')
@@ -17,6 +17,8 @@ dependencies {
1717

1818
testRuntimeOnly 'org.postgresql:postgresql:42.5.0'
1919
testRuntimeOnly 'mysql:mysql-connector-java:8.0.31'
20+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.9.1'
21+
testRuntimeOnly 'org.junit.platform:junit-platform-testkit:1.9.1'
2022

2123
testCompileOnly 'org.jetbrains:annotations:23.0.0'
2224
}

0 commit comments

Comments
 (0)