Browse Source

Remove non-transitive dependencies from spring-boot-starter-test

transitive = false maps to a wildcard exclusion in the published pom.
Unfortunately, this causes problems with Maven as any dependency
on one of the transitive = false modules then has all of its
dependencies excluded, even when it appears elsewhere in the
dependency graph without any exclusions.

Gradle is not affected as it requires an exclusion to be declared
on every route to a dependency for it to be effective. Maven is
affected as it requires the exclusion to be present on only one
route.
pull/46532/head
Andy Wilkinson 5 months ago
parent
commit
96ff9e59ad
  1. 1
      smoke-test/spring-boot-smoke-test-actuator-custom-security/build.gradle
  2. 1
      smoke-test/spring-boot-smoke-test-actuator-extension/build.gradle
  3. 1
      smoke-test/spring-boot-smoke-test-actuator-ui/build.gradle
  4. 1
      smoke-test/spring-boot-smoke-test-actuator/build.gradle
  5. 1
      smoke-test/spring-boot-smoke-test-devtools/build.gradle
  6. 1
      smoke-test/spring-boot-smoke-test-hateoas/build.gradle
  7. 1
      smoke-test/spring-boot-smoke-test-jersey/build.gradle
  8. 3
      smoke-test/spring-boot-smoke-test-jetty-jsp/build.gradle
  9. 1
      smoke-test/spring-boot-smoke-test-jetty-ssl/build.gradle
  10. 1
      smoke-test/spring-boot-smoke-test-jetty/build.gradle
  11. 1
      smoke-test/spring-boot-smoke-test-oauth2-authorization-server/build.gradle
  12. 1
      smoke-test/spring-boot-smoke-test-oauth2-client/build.gradle
  13. 1
      smoke-test/spring-boot-smoke-test-oauth2-resource-server/build.gradle
  14. 1
      smoke-test/spring-boot-smoke-test-prometheus/build.gradle
  15. 1
      smoke-test/spring-boot-smoke-test-quartz/build.gradle
  16. 1
      smoke-test/spring-boot-smoke-test-saml2-service-provider/build.gradle
  17. 1
      smoke-test/spring-boot-smoke-test-secure-jersey/build.gradle
  18. 1
      smoke-test/spring-boot-smoke-test-servlet/build.gradle
  19. 1
      smoke-test/spring-boot-smoke-test-session-hazelcast/build.gradle
  20. 1
      smoke-test/spring-boot-smoke-test-session-jdbc/build.gradle
  21. 1
      smoke-test/spring-boot-smoke-test-tomcat-jsp/build.gradle
  22. 1
      smoke-test/spring-boot-smoke-test-tomcat-multi-connectors/build.gradle
  23. 1
      smoke-test/spring-boot-smoke-test-tomcat-ssl/build.gradle
  24. 1
      smoke-test/spring-boot-smoke-test-tomcat/build.gradle
  25. 1
      smoke-test/spring-boot-smoke-test-traditional/build.gradle
  26. 1
      smoke-test/spring-boot-smoke-test-undertow-ssl/build.gradle
  27. 1
      smoke-test/spring-boot-smoke-test-undertow/build.gradle
  28. 1
      smoke-test/spring-boot-smoke-test-web-freemarker/build.gradle
  29. 1
      smoke-test/spring-boot-smoke-test-web-groovy-templates/build.gradle
  30. 1
      smoke-test/spring-boot-smoke-test-web-jsp/build.gradle
  31. 1
      smoke-test/spring-boot-smoke-test-web-method-security/build.gradle
  32. 1
      smoke-test/spring-boot-smoke-test-web-mustache/build.gradle
  33. 1
      smoke-test/spring-boot-smoke-test-web-secure-custom/build.gradle
  34. 1
      smoke-test/spring-boot-smoke-test-web-secure-jdbc/build.gradle
  35. 1
      smoke-test/spring-boot-smoke-test-web-secure/build.gradle
  36. 1
      smoke-test/spring-boot-smoke-test-web-static/build.gradle
  37. 1
      smoke-test/spring-boot-smoke-test-web-thymeleaf/build.gradle
  38. 1
      smoke-test/spring-boot-smoke-test-webflux/build.gradle
  39. 12
      starter/spring-boot-starter-test/build.gradle
  40. 1
      system-test/spring-boot-deployment-system-tests/build.gradle

1
smoke-test/spring-boot-smoke-test-actuator-custom-security/build.gradle

@ -26,6 +26,7 @@ dependencies { @@ -26,6 +26,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testRuntimeOnly("org.apache.httpcomponents.client5:httpclient5")

1
smoke-test/spring-boot-smoke-test-actuator-extension/build.gradle

@ -24,5 +24,6 @@ dependencies { @@ -24,5 +24,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-actuator"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-actuator-ui/build.gradle

@ -26,5 +26,6 @@ dependencies { @@ -26,5 +26,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-actuator/build.gradle

@ -30,6 +30,7 @@ dependencies { @@ -30,6 +30,7 @@ dependencies {
runtimeOnly("com.h2database:h2")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testRuntimeOnly("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-devtools/build.gradle

@ -30,5 +30,6 @@ dependencies { @@ -30,5 +30,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-hateoas/build.gradle

@ -23,5 +23,6 @@ description = "Spring Boot HATEOAS smoke test" @@ -23,5 +23,6 @@ description = "Spring Boot HATEOAS smoke test"
dependencies {
implementation(project(":starter:spring-boot-starter-hateoas"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-jersey/build.gradle

@ -27,5 +27,6 @@ dependencies { @@ -27,5 +27,6 @@ dependencies {
runtimeOnly("jakarta.xml.bind:jakarta.xml.bind-api")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

3
smoke-test/spring-boot-smoke-test-jetty-jsp/build.gradle

@ -37,6 +37,7 @@ dependencies { @@ -37,6 +37,7 @@ dependencies {
runtimeOnly("org.glassfish.web:jakarta.servlet.jsp.jstl")
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation(project(":starter:spring-boot-starter-jetty"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-jetty-ssl/build.gradle

@ -26,6 +26,7 @@ dependencies { @@ -26,6 +26,7 @@ dependencies {
exclude module: "spring-boot-starter-tomcat"
}
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testRuntimeOnly("org.apache.httpcomponents.client5:httpclient5")

1
smoke-test/spring-boot-smoke-test-jetty/build.gradle

@ -26,5 +26,6 @@ dependencies { @@ -26,5 +26,6 @@ dependencies {
}
implementation(project(":starter:spring-boot-starter-jetty"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-oauth2-authorization-server/build.gradle

@ -23,6 +23,7 @@ description = "Spring Boot OAuth2 Authorization Server smoke test" @@ -23,6 +23,7 @@ description = "Spring Boot OAuth2 Authorization Server smoke test"
dependencies {
implementation(project(":starter:spring-boot-starter-security-oauth2-authorization-server"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-oauth2-client/build.gradle

@ -24,6 +24,7 @@ dependencies { @@ -24,6 +24,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security-oauth2-client"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-oauth2-resource-server/build.gradle

@ -24,6 +24,7 @@ dependencies { @@ -24,6 +24,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security-oauth2-resource-server"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("com.squareup.okhttp3:mockwebserver")
}

1
smoke-test/spring-boot-smoke-test-prometheus/build.gradle

@ -27,5 +27,6 @@ dependencies { @@ -27,5 +27,6 @@ dependencies {
runtimeOnly('io.micrometer:micrometer-registry-prometheus')
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-quartz/build.gradle

@ -28,6 +28,7 @@ dependencies { @@ -28,6 +28,7 @@ dependencies {
runtimeOnly("com.h2database:h2")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.awaitility:awaitility")
}

1
smoke-test/spring-boot-smoke-test-saml2-service-provider/build.gradle

@ -32,6 +32,7 @@ dependencies { @@ -32,6 +32,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security-saml2"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-secure-jersey/build.gradle

@ -25,5 +25,6 @@ dependencies { @@ -25,5 +25,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-jersey"))
implementation(project(":starter:spring-boot-starter-security"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-servlet/build.gradle

@ -25,6 +25,7 @@ dependencies { @@ -25,6 +25,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testRuntimeOnly(project(":starter:spring-boot-starter-tomcat"))

1
smoke-test/spring-boot-smoke-test-session-hazelcast/build.gradle

@ -26,5 +26,6 @@ dependencies { @@ -26,5 +26,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-session-hazelcast"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-session-jdbc/build.gradle

@ -29,5 +29,6 @@ dependencies { @@ -29,5 +29,6 @@ dependencies {
runtimeOnly(project(":starter:spring-boot-starter-jdbc"))
runtimeOnly("com.h2database:h2")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-tomcat-jsp/build.gradle

@ -33,5 +33,6 @@ dependencies { @@ -33,5 +33,6 @@ dependencies {
providedRuntime("org.glassfish.web:jakarta.servlet.jsp.jstl")
providedRuntime("org.apache.tomcat.embed:tomcat-embed-jasper")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-tomcat-multi-connectors/build.gradle

@ -23,6 +23,7 @@ description = "Spring Boot Tomcat multi-connectors smoke test" @@ -23,6 +23,7 @@ description = "Spring Boot Tomcat multi-connectors smoke test"
dependencies {
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-tomcat-ssl/build.gradle

@ -24,6 +24,7 @@ dependencies { @@ -24,6 +24,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-webmvc"))
implementation(project(":starter:spring-boot-starter-actuator"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-tomcat/build.gradle

@ -23,5 +23,6 @@ description = "Spring Boot Tomcat smoke test" @@ -23,5 +23,6 @@ description = "Spring Boot Tomcat smoke test"
dependencies {
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-traditional/build.gradle

@ -33,6 +33,7 @@ dependencies { @@ -33,6 +33,7 @@ dependencies {
providedRuntime(project(":starter:spring-boot-starter-tomcat"))
providedRuntime("org.apache.tomcat.embed:tomcat-embed-jasper")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-undertow-ssl/build.gradle

@ -26,6 +26,7 @@ dependencies { @@ -26,6 +26,7 @@ dependencies {
}
implementation(project(":starter:spring-boot-starter-undertow"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-undertow/build.gradle

@ -26,5 +26,6 @@ dependencies { @@ -26,5 +26,6 @@ dependencies {
}
implementation(project(":starter:spring-boot-starter-undertow"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-web-freemarker/build.gradle

@ -24,5 +24,6 @@ dependencies { @@ -24,5 +24,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-freemarker"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-web-groovy-templates/build.gradle

@ -26,5 +26,6 @@ dependencies { @@ -26,5 +26,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-webmvc"))
implementation("jakarta.xml.bind:jakarta.xml.bind-api")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-web-jsp/build.gradle

@ -33,5 +33,6 @@ dependencies { @@ -33,5 +33,6 @@ dependencies {
providedRuntime("org.glassfish.web:jakarta.servlet.jsp.jstl")
providedRuntime("org.apache.tomcat.embed:tomcat-embed-jasper")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-web-method-security/build.gradle

@ -25,5 +25,6 @@ dependencies { @@ -25,5 +25,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-web-mustache/build.gradle

@ -24,5 +24,6 @@ dependencies { @@ -24,5 +24,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-mustache"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-web-secure-custom/build.gradle

@ -24,6 +24,7 @@ dependencies { @@ -24,6 +24,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-web-secure-jdbc/build.gradle

@ -27,6 +27,7 @@ dependencies { @@ -27,6 +27,7 @@ dependencies {
runtimeOnly("com.h2database:h2")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-web-secure/build.gradle

@ -24,6 +24,7 @@ dependencies { @@ -24,6 +24,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-security"))
implementation(project(":starter:spring-boot-starter-webmvc"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("org.apache.httpcomponents.client5:httpclient5")
}

1
smoke-test/spring-boot-smoke-test-web-static/build.gradle

@ -34,5 +34,6 @@ dependencies { @@ -34,5 +34,6 @@ dependencies {
runtimeOnly("org.webjars:bootstrap:3.0.3")
runtimeOnly("org.webjars:jquery:2.0.3-1")
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-web-thymeleaf/build.gradle

@ -25,5 +25,6 @@ dependencies { @@ -25,5 +25,6 @@ dependencies {
implementation(project(":starter:spring-boot-starter-webmvc"))
implementation(project(":starter:spring-boot-starter-validation"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
}

1
smoke-test/spring-boot-smoke-test-webflux/build.gradle

@ -24,6 +24,7 @@ dependencies { @@ -24,6 +24,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-actuator"))
implementation(project(":starter:spring-boot-starter-webflux"))
testImplementation(project(":starter:spring-boot-starter-restclient"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation("io.projectreactor:reactor-test")
}

12
starter/spring-boot-starter-test/build.gradle

@ -25,21 +25,9 @@ dependencies { @@ -25,21 +25,9 @@ dependencies {
api(project(":core:spring-boot-test"))
api(project(":module:spring-boot-http-client")) {
transitive = false
}
api(project(":module:spring-boot-http-codec")) {
transitive = false
}
api(project(":module:spring-boot-restclient")) {
transitive = false
}
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-webclient")) {
transitive = false
}
api("com.jayway.jsonpath:json-path")
api("jakarta.xml.bind:jakarta.xml.bind-api")

1
system-test/spring-boot-deployment-system-tests/build.gradle

@ -41,6 +41,7 @@ dependencies { @@ -41,6 +41,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-actuator"))
systemTestImplementation(enforcedPlatform(project(path: ":platform:spring-boot-internal-dependencies")))
systemTestImplementation(project(":starter:spring-boot-starter-restclient"))
systemTestImplementation(project(":starter:spring-boot-starter-test"))
systemTestImplementation(project(":test-support:spring-boot-test-support"))
systemTestImplementation("org.apache.httpcomponents.client5:httpclient5")

Loading…
Cancel
Save