Skip to content

Commit db87f87

Browse files
committed
Update test dependencies for the latest Spring Boot 3.5 snapshots
Spring Boot 3.5 updated JUnit Jupiter from v5.11 to v5.12. With this new version, the junit-platform-launcher dependency must be declared explicitly.
1 parent 1a017dc commit db87f87

File tree

26 files changed

+47
-27
lines changed

26 files changed

+47
-27
lines changed

spring-statemachine-autoconfigure/spring-statemachine-autoconfigure.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ dependencies {
1818
optional 'org.springframework.boot:spring-boot-starter-data-redis'
1919
optional 'org.springframework.boot:spring-boot-starter-data-mongodb'
2020
testImplementation 'org.springframework.boot:spring-boot-test'
21-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
21+
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
22+
testImplementation 'org.junit.platform:junit-platform-launcher'
23+
testImplementation 'org.assertj:assertj-core'
2224
testRuntimeOnly 'com.h2database:h2'
2325
}

spring-statemachine-build-tests/spring-statemachine-build-tests.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ dependencies {
1717
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-mongodb'
1818
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-redis'
1919
testRuntimeOnly 'redis.clients:jedis'
20-
testImplementation 'org.junit.jupiter:junit-jupiter-api'
2120
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
21+
testImplementation 'org.junit.platform:junit-platform-launcher'
2222
testImplementation 'org.springframework.boot:spring-boot-starter-data-jpa'
2323
testImplementation 'com.h2database:h2'
2424
testImplementation 'org.springframework.boot:spring-boot-starter'

spring-statemachine-cluster/spring-statemachine-cluster.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ dependencies {
1010
api 'org.springframework.integration:spring-integration-zookeeper'
1111
testImplementation 'org.apache.curator:curator-test'
1212
testImplementation 'org.assertj:assertj-core'
13-
testImplementation 'org.junit.jupiter:junit-jupiter-api'
1413
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
14+
testImplementation 'org.junit.platform:junit-platform-launcher'
1515
}

spring-statemachine-core/spring-statemachine-core.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ dependencies {
1414
compileOnly 'com.google.code.findbugs:jsr305'
1515
testImplementation 'org.springframework:spring-web'
1616
testImplementation 'org.springframework:spring-webmvc'
17-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
17+
testImplementation 'org.springframework.boot:spring-boot-test'
18+
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
19+
testImplementation 'org.junit.platform:junit-platform-launcher'
20+
testImplementation 'org.mockito:mockito-junit-jupiter'
1821
testImplementation 'io.projectreactor:reactor-test'
1922
testImplementation 'org.awaitility:awaitility'
2023
testImplementation 'org.springframework.security:spring-security-config'

spring-statemachine-data/jpa/spring-statemachine-data-jpa.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ dependencies {
1414
testImplementation(testFixtures(project(':spring-statemachine-core')))
1515
testImplementation 'io.projectreactor:reactor-test'
1616
testImplementation 'org.hsqldb:hsqldb'
17-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
17+
testImplementation 'org.springframework.boot:spring-boot-test'
18+
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure'
19+
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
20+
testImplementation 'org.junit.platform:junit-platform-launcher'
1821
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-jpa'
1922
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
2023
}

spring-statemachine-data/mongodb/spring-statemachine-data-mongodb.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ dependencies {
1212
testImplementation(testFixtures(project(':spring-statemachine-data-common')))
1313
testImplementation(testFixtures(project(':spring-statemachine-core')))
1414
testImplementation 'io.projectreactor:reactor-test'
15-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
15+
testImplementation 'org.springframework.boot:spring-boot-test'
16+
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure'
17+
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
18+
testImplementation 'org.junit.platform:junit-platform-launcher'
1619
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-mongodb'
1720
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
1821
}

spring-statemachine-data/redis/spring-statemachine-data-redis.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ dependencies {
1212
testImplementation(testFixtures(project(':spring-statemachine-data-common')))
1313
testImplementation(testFixtures(project(':spring-statemachine-core')))
1414
testImplementation 'io.projectreactor:reactor-test'
15-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
15+
testImplementation 'org.springframework.boot:spring-boot-test'
16+
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure'
17+
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
18+
testImplementation 'org.junit.platform:junit-platform-launcher'
1619
testRuntimeOnly 'org.apache.commons:commons-pool2'
1720
testRuntimeOnly 'redis.clients:jedis'
1821
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-data-redis'

spring-statemachine-data/spring-statemachine-data.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ dependencies {
1515
testFixturesImplementation (project(':spring-statemachine-test'))
1616
testImplementation(testFixtures(project(':spring-statemachine-core')))
1717
testImplementation 'io.projectreactor:reactor-test'
18-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
19-
testFixturesImplementation 'org.springframework.boot:spring-boot-starter-test'
18+
testImplementation 'org.springframework.boot:spring-boot-test'
19+
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
20+
testImplementation 'org.junit.platform:junit-platform-launcher'
21+
testFixturesImplementation 'org.springframework.boot:spring-boot-test'
22+
testFixturesImplementation 'org.junit.jupiter:junit-jupiter-engine'
23+
testFixturesImplementation 'org.junit.platform:junit-platform-launcher'
2024
testRuntimeOnly 'org.springframework.boot:spring-boot-starter-web'
2125
}

spring-statemachine-kryo/spring-statemachine-kryo.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ dependencies {
99
api project(':spring-statemachine-core')
1010
api 'com.esotericsoftware:kryo-shaded'
1111
testImplementation 'org.assertj:assertj-core'
12-
testImplementation 'org.junit.jupiter:junit-jupiter-api'
1312
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
13+
testImplementation 'org.junit.platform:junit-platform-launcher'
1414
}

spring-statemachine-recipes/spring-statemachine-recipes.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ dependencies {
1010
testImplementation(testFixtures(project(':spring-statemachine-core')))
1111
testImplementation 'io.projectreactor:reactor-test'
1212
testImplementation 'org.springframework:spring-test'
13-
testImplementation 'org.junit.jupiter:junit-jupiter-api'
1413
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
14+
testImplementation 'org.junit.platform:junit-platform-launcher'
1515
testImplementation 'io.projectreactor.tools:blockhound'
1616
testImplementation 'org.assertj:assertj-core'
1717
}

0 commit comments

Comments
 (0)