Add classic test starter

See gh-46356
See gh-47322
This commit is contained in:
Phillip Webb 2025-09-30 22:26:50 -07:00
parent 2d312ed5f5
commit dadfd9a35d
4 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,103 @@
/*
* Copyright 2012-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id "java-library"
id "org.springframework.boot.deployed"
}
description = "Spring Boot Test Classic Modules"
// NOTE: This module is broken out so that direct starter dependencies are
// closer and will be resolved by Maven without the exclusions
dependencies {
api(project(":core:spring-boot-test")) {
transitive = false
}
api(project(":core:spring-boot-test-autoconfigure")) {
transitive = false
}
api(project(":module:spring-boot-cache-test")) {
transitive = false
}
api(project(":module:spring-boot-data-cassandra-test")) {
transitive = false
}
api(project(":module:spring-boot-data-couchbase-test")) {
transitive = false
}
api(project(":module:spring-boot-data-elasticsearch-test")) {
transitive = false
}
api(project(":module:spring-boot-data-jdbc-test")) {
transitive = false
}
api(project(":module:spring-boot-data-jpa-test")) {
transitive = false
}
api(project(":module:spring-boot-data-ldap-test")) {
transitive = false
}
api(project(":module:spring-boot-data-mongodb-test")) {
transitive = false
}
api(project(":module:spring-boot-data-neo4j-test")) {
transitive = false
}
api(project(":module:spring-boot-data-r2dbc-test")) {
transitive = false
}
api(project(":module:spring-boot-data-redis-test")) {
transitive = false
}
api(project(":module:spring-boot-graphql-test")) {
transitive = false
}
api(project(":module:spring-boot-jdbc-test")) {
transitive = false
}
api(project(":module:spring-boot-jooq-test")) {
transitive = false
}
api(project(":module:spring-boot-jpa-test")) {
transitive = false
}
api(project(":module:spring-boot-micrometer-metrics-test")) {
transitive = false
}
api(project(":module:spring-boot-micrometer-tracing-test")) {
transitive = false
}
api(project(":module:spring-boot-restclient-test")) {
transitive = false
}
api(project(":module:spring-boot-rsocket-test")) {
transitive = false
}
api(project(":module:spring-boot-security-test")) {
transitive = false
}
api(project(":module:spring-boot-webflux-test")) {
transitive = false
}
api(project(":module:spring-boot-webmvc-test")) {
transitive = false
}
api(project(":module:spring-boot-webservices-test")) {
transitive = false
}
}

View File

@ -2226,6 +2226,7 @@ bom {
"spring-boot-starter-sql", "spring-boot-starter-sql",
"spring-boot-starter-sql-test", "spring-boot-starter-sql-test",
"spring-boot-starter-test", "spring-boot-starter-test",
"spring-boot-starter-test-classic",
"spring-boot-starter-thymeleaf", "spring-boot-starter-thymeleaf",
"spring-boot-starter-thymeleaf-test", "spring-boot-starter-thymeleaf-test",
"spring-boot-starter-tomcat", "spring-boot-starter-tomcat",
@ -2246,6 +2247,7 @@ bom {
"spring-boot-starter-zipkin", "spring-boot-starter-zipkin",
"spring-boot-test", "spring-boot-test",
"spring-boot-test-autoconfigure", "spring-boot-test-autoconfigure",
"spring-boot-test-classic-modules",
"spring-boot-testcontainers", "spring-boot-testcontainers",
"spring-boot-thymeleaf", "spring-boot-thymeleaf",
"spring-boot-tomcat", "spring-boot-tomcat",

View File

@ -181,6 +181,7 @@ 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-classic-modules"
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"
@ -342,6 +343,7 @@ include "starter:spring-boot-starter-session-jdbc-test"
include "starter:spring-boot-starter-sql" include "starter:spring-boot-starter-sql"
include "starter:spring-boot-starter-sql-test" include "starter:spring-boot-starter-sql-test"
include "starter:spring-boot-starter-test" include "starter:spring-boot-starter-test"
include "starter:spring-boot-starter-test-classic"
include "starter:spring-boot-starter-thymeleaf" include "starter:spring-boot-starter-thymeleaf"
include "starter:spring-boot-starter-thymeleaf-test" include "starter:spring-boot-starter-thymeleaf-test"
include "starter:spring-boot-starter-tomcat" include "starter:spring-boot-starter-tomcat"

View File

@ -0,0 +1,32 @@
/*
* Copyright 2012-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id "org.springframework.boot.starter"
}
description = "Classic starter for testing Spring Boot applications with libraries including JUnit Jupiter, Hamcrest and Mockito"
dependencies {
api(project(":starter:spring-boot-starter-test"))
api(project(":module:spring-boot-test-classic-modules"))
}
checkRuntimeClasspathForConflicts {
ignore { name -> name.startsWith("mockito-extensions/") }
}