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.
This commit is contained in:
Mahmoud Ben Hassine
2025-04-22 19:55:47 +02:00
parent df12a4bbc7
commit 8f4e1b78fa
12 changed files with 70 additions and 14 deletions

View File

@@ -10,6 +10,11 @@ dependencies {
implementation project(':spring-shell-core')
implementation project(':spring-shell-standard')
implementation project(':spring-shell-standard-commands')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
}

View File

@@ -18,7 +18,12 @@ dependencies {
api('org.antlr:ST4')
api('commons-io:commons-io')
compileOnly 'com.google.code.findbugs:jsr305'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
testImplementation 'org.awaitility:awaitility'
testImplementation 'com.google.jimfs:jimfs'
testImplementation 'io.projectreactor:reactor-test'

View File

@@ -11,7 +11,12 @@ dependencies {
implementation project(':spring-shell-starters:spring-shell-starter')
implementation project(':spring-shell-starters:spring-shell-starter-test')
implementation project(':spring-shell-samples:spring-shell-sample-catalog')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
testImplementation 'org.awaitility:awaitility'
}

View File

@@ -8,6 +8,11 @@ dependencies {
management platform(project(":spring-shell-management"))
implementation project(':spring-shell-starters:spring-shell-starter-jna')
testImplementation project(':spring-shell-starters:spring-shell-starter-test')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
testImplementation 'org.awaitility:awaitility'
}

View File

@@ -8,6 +8,11 @@ dependencies {
management platform(project(":spring-shell-management"))
implementation project(':spring-shell-starters:spring-shell-starter-jna')
testImplementation project(':spring-shell-starters:spring-shell-starter-test')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
testImplementation 'org.awaitility:awaitility'
}

View File

@@ -8,6 +8,11 @@ dependencies {
management platform(project(":spring-shell-management"))
implementation project(':spring-shell-starters:spring-shell-starter-jna')
testImplementation project(':spring-shell-starters:spring-shell-starter-test')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
testImplementation 'org.awaitility:awaitility'
}

View File

@@ -15,6 +15,11 @@ dependencies {
management platform(project(":spring-shell-management"))
implementation project(':spring-shell-starters:spring-shell-starter-ffm')
testImplementation project(':spring-shell-starters:spring-shell-starter-test')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
testImplementation 'org.awaitility:awaitility'
}

View File

@@ -8,5 +8,10 @@ dependencies {
management platform(project(":spring-shell-management"))
implementation project(':spring-shell-core')
implementation project(':spring-shell-standard')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
}

View File

@@ -8,5 +8,10 @@ dependencies {
management platform(project(":spring-shell-management"))
implementation project(':spring-shell-core')
compileOnly 'com.google.code.findbugs:jsr305'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
}

View File

@@ -9,5 +9,10 @@ dependencies {
api('org.springframework:spring-core')
api('org.springframework:spring-context')
compileOnly 'com.google.code.findbugs:jsr305'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
}

View File

@@ -13,9 +13,10 @@ dependencies {
implementation 'org.springframework:spring-test'
implementation 'org.springframework.boot:spring-boot-autoconfigure'
implementation 'org.springframework.boot:spring-boot-test-autoconfigure'
implementation 'org.springframework.boot:spring-boot-starter-test'
optional 'org.assertj:assertj-core'
optional 'org.junit.jupiter:junit-jupiter-api'
implementation 'org.springframework.boot:spring-boot-test'
implementation 'org.junit.jupiter:junit-jupiter-engine'
implementation 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.assertj:assertj-core'
testImplementation 'org.awaitility:awaitility'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
}

View File

@@ -9,6 +9,11 @@ dependencies {
implementation project(':spring-shell-core')
optional 'org.assertj:assertj-core'
optional 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation('org.springframework.boot:spring-boot-test')
testImplementation('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.junit.jupiter:junit-jupiter-params')
testImplementation('org.junit.platform:junit-platform-launcher')
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation('org.assertj:assertj-core')
testImplementation 'org.awaitility:awaitility'
}