Refine spring-boot-test-autoconfigure dependencies

Make `spring-boot-test-autoconfigure` optionally depend on
`spring-boot-autoconfigure` so that it can be an `api` dependency
for `*-test` modules. Also relocate it to core.

See gh-47322
This commit is contained in:
Phillip Webb 2025-09-26 14:38:25 -07:00
parent 17e655b7e5
commit 4b2d358384
57 changed files with 57 additions and 89 deletions

View File

@ -23,12 +23,11 @@ plugins {
description = "Spring Boot Test AutoConfigure" description = "Spring Boot Test AutoConfigure"
dependencies { dependencies {
api(project(":core:spring-boot"))
api(project(":core:spring-boot-autoconfigure"))
api(project(":core:spring-boot-test")) api(project(":core:spring-boot-test"))
compileOnly("org.mockito:mockito-core") compileOnly("org.mockito:mockito-core")
optional(project(":core:spring-boot-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -83,6 +83,7 @@ dependencies {
implementation(project(path: ":cli:spring-boot-cli")) implementation(project(path: ":cli:spring-boot-cli"))
implementation(project(path: ":core:spring-boot-docker-compose")) implementation(project(path: ":core:spring-boot-docker-compose"))
implementation(project(path: ":core:spring-boot-test")) implementation(project(path: ":core:spring-boot-test"))
implementation(project(path: ":core:spring-boot-test-autoconfigure"))
implementation(project(path: ":core:spring-boot-testcontainers")) implementation(project(path: ":core:spring-boot-testcontainers"))
implementation(project(path: ":loader:spring-boot-loader-tools")) implementation(project(path: ":loader:spring-boot-loader-tools"))
implementation(project(path: ":module:spring-boot-actuator")) implementation(project(path: ":module:spring-boot-actuator"))
@ -124,7 +125,6 @@ dependencies {
implementation(project(path: ":module:spring-boot-restclient")) implementation(project(path: ":module:spring-boot-restclient"))
implementation(project(path: ":module:spring-boot-restclient-test")) implementation(project(path: ":module:spring-boot-restclient-test"))
implementation(project(path: ":module:spring-boot-security")) implementation(project(path: ":module:spring-boot-security"))
implementation(project(path: ":module:spring-boot-test-autoconfigure"))
implementation(project(path: ":module:spring-boot-tomcat")) implementation(project(path: ":module:spring-boot-tomcat"))
implementation(project(path: ":module:spring-boot-web-server-test")) implementation(project(path: ":module:spring-boot-web-server-test"))
implementation(project(path: ":module:spring-boot-webclient")) implementation(project(path: ":module:spring-boot-webclient"))
@ -232,7 +232,7 @@ dependencies {
testRuntimeOnly("com.h2database:h2") testRuntimeOnly("com.h2database:h2")
testRuntimeOnly("org.springframework:spring-jdbc") testRuntimeOnly("org.springframework:spring-jdbc")
testSlices(project(path: ":module:spring-boot-test-autoconfigure", configuration: "testSliceMetadata")) testSlices(project(path: ":core:spring-boot-test-autoconfigure", configuration: "testSliceMetadata"))
} }
dokkatoo { dokkatoo {

View File

@ -24,11 +24,10 @@ plugins {
description = "Spring Boot Cache Test" description = "Spring Boot Cache Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-cache")) api(project(":module:spring-boot-cache"))
implementation(project(":core:spring-boot-test")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -25,12 +25,10 @@ plugins {
description = "Spring Boot Data Cassandra Test" description = "Spring Boot Data Cassandra Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-cassandra")) api(project(":module:spring-boot-data-cassandra"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
dockerTestImplementation(project(":core:spring-boot-testcontainers")) dockerTestImplementation(project(":core:spring-boot-testcontainers"))

View File

@ -33,9 +33,8 @@ dependencies {
optional(project(":module:spring-boot-micrometer-metrics")) optional(project(":module:spring-boot-micrometer-metrics"))
optional(project(":module:spring-boot-webmvc")) optional(project(":module:spring-boot-webmvc"))
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-jdbc")) testImplementation(project(":module:spring-boot-jdbc"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-webmvc-test")) testImplementation(project(":module:spring-boot-webmvc-test"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))
testImplementation(testFixtures(project(":core:spring-boot-autoconfigure"))) testImplementation(testFixtures(project(":core:spring-boot-autoconfigure")))

View File

@ -24,12 +24,10 @@ plugins {
description = "Spring Boot Data Couchbase Test" description = "Spring Boot Data Couchbase Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-couchbase")) api(project(":module:spring-boot-data-couchbase"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -25,14 +25,12 @@ plugins {
description = "Spring Boot Data Elasticsearch Test" description = "Spring Boot Data Elasticsearch Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-elasticsearch")) api(project(":module:spring-boot-data-elasticsearch"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-jackson")) optional(project(":module:spring-boot-jackson"))
optional(project(":module:spring-boot-jsonb")) optional(project(":module:spring-boot-jsonb"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
dockerTestImplementation(project(":core:spring-boot-testcontainers")) dockerTestImplementation(project(":core:spring-boot-testcontainers"))

View File

@ -24,13 +24,11 @@ plugins {
description = "Spring Boot Data JDBC Test" description = "Spring Boot Data JDBC Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-jdbc")) api(project(":module:spring-boot-data-jdbc"))
api(project(":module:spring-boot-jdbc-test")) api(project(":module:spring-boot-jdbc-test"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -24,14 +24,12 @@ plugins {
description = "Spring Boot Data JPA Test" description = "Spring Boot Data JPA Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-jpa")) api(project(":module:spring-boot-data-jpa"))
api(project(":module:spring-boot-jdbc-test")) api(project(":module:spring-boot-jdbc-test"))
api(project(":module:spring-boot-jpa-test")) api(project(":module:spring-boot-jpa-test"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -25,12 +25,10 @@ plugins {
description = "Spring Boot Data LDAP Test" description = "Spring Boot Data LDAP Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-ldap")) api(project(":module:spring-boot-data-ldap"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
dockerTestImplementation(project(":core:spring-boot-testcontainers")) dockerTestImplementation(project(":core:spring-boot-testcontainers"))

View File

@ -25,12 +25,10 @@ plugins {
description = "Spring Boot Data MongoDB Test" description = "Spring Boot Data MongoDB Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-mongodb")) api(project(":module:spring-boot-data-mongodb"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
dockerTestImplementation(project(":core:spring-boot-testcontainers")) dockerTestImplementation(project(":core:spring-boot-testcontainers"))

View File

@ -25,12 +25,10 @@ plugins {
description = "Spring Boot Data Neo4j Test" description = "Spring Boot Data Neo4j Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-neo4j")) api(project(":module:spring-boot-data-neo4j"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
dockerTestImplementation(project(":core:spring-boot-testcontainers")) dockerTestImplementation(project(":core:spring-boot-testcontainers"))

View File

@ -24,12 +24,10 @@ plugins {
description = "Spring Boot Data R2DBC Test" description = "Spring Boot Data R2DBC Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-r2dbc")) api(project(":module:spring-boot-data-r2dbc"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional(project(":module:spring-boot-jdbc-test")) optional(project(":module:spring-boot-jdbc-test"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")

View File

@ -25,12 +25,10 @@ plugins {
description = "Spring Boot Data Redis Test" description = "Spring Boot Data Redis Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-data-redis")) api(project(":module:spring-boot-data-redis"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
dockerTestImplementation(project(":core:spring-boot-testcontainers")) dockerTestImplementation(project(":core:spring-boot-testcontainers"))

View File

@ -38,8 +38,8 @@ dependencies {
optional("jakarta.servlet:jakarta.servlet-api") optional("jakarta.servlet:jakarta.servlet-api")
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test"))
testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-servlet")) testImplementation(project(":module:spring-boot-servlet"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))
testImplementation(testFixtures(project(":core:spring-boot-autoconfigure"))) testImplementation(testFixtures(project(":core:spring-boot-autoconfigure")))

View File

@ -24,14 +24,14 @@ plugins {
description = "Spring Boot GraphQL Test" description = "Spring Boot GraphQL Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api("org.springframework.graphql:spring-graphql-test") api("org.springframework.graphql:spring-graphql-test")
implementation(project(":core:spring-boot-test"))
implementation(project(":module:spring-boot-graphql")) implementation(project(":module:spring-boot-graphql"))
implementation(project(":module:spring-boot-jackson")) implementation(project(":module:spring-boot-jackson"))
optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-json-test")) optional(project(":module:spring-boot-json-test"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional(project(":module:spring-boot-validation")) optional(project(":module:spring-boot-validation"))
optional(project(":module:spring-boot-webclient")) optional(project(":module:spring-boot-webclient"))
optional(project(":module:spring-boot-webflux-test")) optional(project(":module:spring-boot-webflux-test"))

View File

@ -34,8 +34,7 @@ dependencies {
optional(project(":module:spring-boot-webmvc-test")) optional(project(":module:spring-boot-webmvc-test"))
optional("jakarta.servlet:jakarta.servlet-api") optional("jakarta.servlet:jakarta.servlet-api")
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))
testImplementation(testFixtures(project(":core:spring-boot-autoconfigure"))) testImplementation(testFixtures(project(":core:spring-boot-autoconfigure")))

View File

@ -33,8 +33,7 @@ dependencies {
optional(project(":core:spring-boot-autoconfigure")) optional(project(":core:spring-boot-autoconfigure"))
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-webmvc-test")) testImplementation(project(":module:spring-boot-webmvc-test"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))
testImplementation("jakarta.servlet:jakarta.servlet-api") testImplementation("jakarta.servlet:jakarta.servlet-api")

View File

@ -26,12 +26,10 @@ plugins {
description = "Spring Boot JDBC Test" description = "Spring Boot JDBC Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-jdbc")) api(project(":module:spring-boot-jdbc"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
dockerTestImplementation(project(":core:spring-boot-docker-compose")) dockerTestImplementation(project(":core:spring-boot-docker-compose"))

View File

@ -24,13 +24,11 @@ plugins {
description = "Spring Boot jOOQ Test" description = "Spring Boot jOOQ Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-jooq")) api(project(":module:spring-boot-jooq"))
implementation(project(":core:spring-boot-test"))
optional(project(":core:spring-boot-testcontainers")) optional(project(":core:spring-boot-testcontainers"))
optional(project(":module:spring-boot-jdbc-test")) optional(project(":module:spring-boot-jdbc-test"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
testImplementation(project(":module:spring-boot-flyway")) testImplementation(project(":module:spring-boot-flyway"))

View File

@ -24,11 +24,10 @@ plugins {
description = "Spring Boot JPA Test" description = "Spring Boot JPA Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-jpa")) api(project(":module:spring-boot-jpa"))
implementation(project(":core:spring-boot-test")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -25,13 +25,13 @@ plugins {
description = "Spring Boot JSON Test" description = "Spring Boot JSON Test"
dependencies { dependencies {
implementation(project(":core:spring-boot-test")) api(project(":core:spring-boot-test-autoconfigure"))
optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-gson")) optional(project(":module:spring-boot-gson"))
optional(project(":module:spring-boot-jackson")) optional(project(":module:spring-boot-jackson"))
optional(project(":module:spring-boot-jsonb")) optional(project(":module:spring-boot-jsonb"))
optional(project(":module:spring-boot-kotlin-serialization")) optional(project(":module:spring-boot-kotlin-serialization"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("com.jayway.jsonpath:json-path") optional("com.jayway.jsonpath:json-path")
optional("org.assertj:assertj-core") optional("org.assertj:assertj-core")
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")

View File

@ -24,11 +24,10 @@ plugins {
description = "Spring Boot Micrometer Metrics Test" description = "Spring Boot Micrometer Metrics Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-micrometer-metrics")) api(project(":module:spring-boot-micrometer-metrics"))
implementation(project(":core:spring-boot-test")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -24,11 +24,10 @@ plugins {
description = "Spring Boot Micrometer Tracing Test" description = "Spring Boot Micrometer Tracing Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-micrometer-tracing")) api(project(":module:spring-boot-micrometer-tracing"))
implementation(project(":core:spring-boot-test")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -34,11 +34,10 @@ dependencies {
optional("org.springframework:spring-webflux") optional("org.springframework:spring-webflux")
optional(project(":core:spring-boot-autoconfigure")) optional(project(":core:spring-boot-autoconfigure"))
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-reactor-netty")) testImplementation(project(":module:spring-boot-reactor-netty"))
testImplementation(project(":module:spring-boot-restclient")) testImplementation(project(":module:spring-boot-restclient"))
testImplementation(project(":module:spring-boot-reactor-netty")) testImplementation(project(":module:spring-boot-reactor-netty"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-tomcat")) testImplementation(project(":module:spring-boot-tomcat"))
testImplementation(project(":module:spring-boot-webflux-test")) testImplementation(project(":module:spring-boot-webflux-test"))
testImplementation(project(":module:spring-boot-webmvc-test")) testImplementation(project(":module:spring-boot-webmvc-test"))

View File

@ -25,12 +25,12 @@ description = "Spring Boot RestClient Test"
dependencies { dependencies {
api(project(":core:spring-boot")) api(project(":core:spring-boot"))
api(project(":core:spring-boot-test-autoconfigure"))
optional(project(":core:spring-boot-autoconfigure")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-jackson")) optional(project(":module:spring-boot-jackson"))
optional(project(":module:spring-boot-json-test")) optional(project(":module:spring-boot-json-test"))
optional(project(":module:spring-boot-restclient")) optional(project(":module:spring-boot-restclient"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
optional("org.springframework:spring-test") optional("org.springframework:spring-test")

View File

@ -26,9 +26,11 @@ description = "Spring Boot REST Docs"
dependencies { dependencies {
api("org.springframework.restdocs:spring-restdocs-core") api("org.springframework.restdocs:spring-restdocs-core")
optional(project(":core:spring-boot-autoconfigure"))
optional(project(":core:spring-boot-test-autoconfigure"))
optional(project(":module:spring-boot-webmvc-test")) optional(project(":module:spring-boot-webmvc-test"))
optional(project(":module:spring-boot-web-server-test")) optional(project(":module:spring-boot-web-server-test"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.springframework.restdocs:spring-restdocs-mockmvc") optional("org.springframework.restdocs:spring-restdocs-mockmvc")
optional("org.springframework.restdocs:spring-restdocs-restassured") optional("org.springframework.restdocs:spring-restdocs-restassured")
optional("org.springframework.restdocs:spring-restdocs-webtestclient") optional("org.springframework.restdocs:spring-restdocs-webtestclient")

View File

@ -24,8 +24,11 @@ plugins {
description = "Spring Boot RSocket Test" description = "Spring Boot RSocket Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-rsocket")) api(project(":module:spring-boot-rsocket"))
optional(project(":core:spring-boot-autoconfigure"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))
testRuntimeOnly("ch.qos.logback:logback-classic") testRuntimeOnly("ch.qos.logback:logback-classic")

View File

@ -37,10 +37,9 @@ dependencies {
optional(project(":module:spring-boot-webmvc-test")) optional(project(":module:spring-boot-webmvc-test"))
optional(project(":module:spring-boot-web-server-test")) optional(project(":module:spring-boot-web-server-test"))
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-tomcat")) testImplementation(project(":module:spring-boot-tomcat"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-webmvc")) testImplementation(project(":module:spring-boot-webmvc"))
testImplementation(testFixtures(project(":core:spring-boot-autoconfigure"))) testImplementation(testFixtures(project(":core:spring-boot-autoconfigure")))
testImplementation("com.squareup.okhttp3:mockwebserver") testImplementation("com.squareup.okhttp3:mockwebserver")

View File

@ -38,10 +38,9 @@ dependencies {
optional(project(":module:spring-boot-webmvc-test")) optional(project(":module:spring-boot-webmvc-test"))
optional("jakarta.servlet:jakarta.servlet-api") optional("jakarta.servlet:jakarta.servlet-api")
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-actuator-autoconfigure")) testImplementation(project(":module:spring-boot-actuator-autoconfigure"))
testImplementation(project(":module:spring-boot-jackson")) testImplementation(project(":module:spring-boot-jackson"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-webflux")) testImplementation(project(":module:spring-boot-webflux"))
testImplementation(project(":module:spring-boot-webmvc")) testImplementation(project(":module:spring-boot-webmvc"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -33,9 +33,8 @@ dependencies {
optional(project(":core:spring-boot-autoconfigure")) optional(project(":core:spring-boot-autoconfigure"))
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-actuator-autoconfigure")) testImplementation(project(":module:spring-boot-actuator-autoconfigure"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-webmvc")) testImplementation(project(":module:spring-boot-webmvc"))
testImplementation(project(":module:spring-boot-webmvc-test")) testImplementation(project(":module:spring-boot-webmvc-test"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -24,10 +24,11 @@ plugins {
description = "Spring Boot Security Test" description = "Spring Boot Security Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-security")) api(project(":module:spring-boot-security"))
api("org.springframework.security:spring-security-test") api("org.springframework.security:spring-security-test")
optional(project(":module:spring-boot-test-autoconfigure")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-webflux-test")) optional(project(":module:spring-boot-webflux-test"))
optional(project(":module:spring-boot-webmvc-test")) optional(project(":module:spring-boot-webmvc-test"))
optional("org.seleniumhq.selenium:htmlunit3-driver") { optional("org.seleniumhq.selenium:htmlunit3-driver") {

View File

@ -27,6 +27,7 @@ description = "Spring Boot Security"
dependencies { dependencies {
api(project(":core:spring-boot")) api(project(":core:spring-boot"))
api(project(":core:spring-boot-test-autoconfigure"))
api("org.springframework.security:spring-security-config") api("org.springframework.security:spring-security-config")
api("org.springframework.security:spring-security-web") api("org.springframework.security:spring-security-web")

View File

@ -42,8 +42,7 @@ dependencies {
optional("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect") optional("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
optional("jakarta.servlet:jakarta.servlet-api") optional("jakarta.servlet:jakarta.servlet-api")
testImplementation(project(":core:spring-boot-test")) testImplementation(project(":core:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-test-autoconfigure"))
testImplementation(project(":module:spring-boot-webflux-test")) testImplementation(project(":module:spring-boot-webflux-test"))
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))
testImplementation(testFixtures(project(":core:spring-boot-autoconfigure"))) testImplementation(testFixtures(project(":core:spring-boot-autoconfigure")))

View File

@ -27,12 +27,11 @@ description = "Spring Boot Web Server Test"
dependencies { dependencies {
api(project(":core:spring-boot")) api(project(":core:spring-boot"))
api(project(":core:spring-boot-test-autoconfigure"))
implementation(project(":core:spring-boot-test")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-http-codec")) optional(project(":module:spring-boot-http-codec"))
optional(project(":module:spring-boot-restclient")) optional(project(":module:spring-boot-restclient"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional(project(":module:spring-boot-web-server")) optional(project(":module:spring-boot-web-server"))
optional(project(":module:spring-boot-webclient")) optional(project(":module:spring-boot-webclient"))
optional("jakarta.servlet:jakarta.servlet-api") optional("jakarta.servlet:jakarta.servlet-api")

View File

@ -24,14 +24,13 @@ plugins {
description = "Spring Boot WebFlux Test" description = "Spring Boot WebFlux Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-webflux")) api(project(":module:spring-boot-webflux"))
implementation(project(":core:spring-boot-test")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-http-codec")) optional(project(":module:spring-boot-http-codec"))
optional(project(":module:spring-boot-jackson")) optional(project(":module:spring-boot-jackson"))
optional(project(":module:spring-boot-json-test")) optional(project(":module:spring-boot-json-test"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional(project(":module:spring-boot-validation")) optional(project(":module:spring-boot-validation"))
optional(project(":module:spring-boot-web-server-test")) optional(project(":module:spring-boot-web-server-test"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")

View File

@ -25,18 +25,19 @@ plugins {
description = "Spring Boot Web MVC Test" description = "Spring Boot Web MVC Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-webmvc")) api(project(":module:spring-boot-webmvc"))
compileOnly("jakarta.servlet:jakarta.servlet-api") compileOnly("jakarta.servlet:jakarta.servlet-api")
implementation(project(":core:spring-boot-test"))
implementation(project(":module:spring-boot-http-converter")) implementation(project(":module:spring-boot-http-converter"))
implementation(project(":module:spring-boot-web-server")) implementation(project(":module:spring-boot-web-server"))
implementation(project(":module:spring-boot-web-server-test")) implementation(project(":module:spring-boot-web-server-test"))
optional(project(":core:spring-boot-autoconfigure"))
optional(project(":core:spring-boot-test-autoconfigure"))
optional(project(":module:spring-boot-jackson")) optional(project(":module:spring-boot-jackson"))
optional(project(":module:spring-boot-json-test")) optional(project(":module:spring-boot-json-test"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional(project(":module:spring-boot-validation")) optional(project(":module:spring-boot-validation"))
optional(project(":module:spring-boot-webflux")) optional(project(":module:spring-boot-webflux"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")

View File

@ -25,12 +25,11 @@ plugins {
description = "Spring Boot Web Services Test" description = "Spring Boot Web Services Test"
dependencies { dependencies {
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-webservices")) api(project(":module:spring-boot-webservices"))
api("org.springframework.ws:spring-ws-test") api("org.springframework.ws:spring-ws-test")
implementation(project(":core:spring-boot-test")) optional(project(":core:spring-boot-autoconfigure"))
optional(project(":module:spring-boot-test-autoconfigure"))
optional("org.junit.jupiter:junit-jupiter-api") optional("org.junit.jupiter:junit-jupiter-api")
testImplementation(project(":test-support:spring-boot-test-support")) testImplementation(project(":test-support:spring-boot-test-support"))

View File

@ -75,6 +75,7 @@ include "core:spring-boot-autoconfigure-processor"
include "core:spring-boot-docker-compose" include "core:spring-boot-docker-compose"
include "core:spring-boot-properties-migrator" include "core:spring-boot-properties-migrator"
include "core:spring-boot-test" include "core:spring-boot-test"
include "core:spring-boot-test-autoconfigure"
include "core:spring-boot-testcontainers" include "core:spring-boot-testcontainers"
include "module:spring-boot-activemq" include "module:spring-boot-activemq"
@ -181,7 +182,6 @@ include "module:spring-boot-session-data-redis"
include "module:spring-boot-session-hazelcast" include "module:spring-boot-session-hazelcast"
include "module:spring-boot-session-jdbc" include "module:spring-boot-session-jdbc"
include "module:spring-boot-sql" include "module:spring-boot-sql"
include "module:spring-boot-test-autoconfigure"
include "module:spring-boot-thymeleaf" include "module:spring-boot-thymeleaf"
include "module:spring-boot-tomcat" include "module:spring-boot-tomcat"
include "module:spring-boot-tx" include "module:spring-boot-tx"

View File

@ -25,8 +25,8 @@ dependencies {
api(project(":core:spring-boot-test")) api(project(":core:spring-boot-test"))
api(project(":core:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-restclient-test")) api(project(":module:spring-boot-restclient-test"))
api(project(":module:spring-boot-test-autoconfigure"))
api(project(":module:spring-boot-web-server-test")) api(project(":module:spring-boot-web-server-test"))
api("com.jayway.jsonpath:json-path") api("com.jayway.jsonpath:json-path")