diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/spring-boot-applications.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/spring-boot-applications.adoc index 79c623dba5c..86c5b034e1a 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/spring-boot-applications.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/spring-boot-applications.adoc @@ -197,10 +197,14 @@ include-code::MyRandomPortWebTestClientTests[] TIP: javadoc:org.springframework.test.web.reactive.server.WebTestClient[] can also used with a xref:testing/spring-boot-applications.adoc#testing.spring-boot-applications.with-mock-environment[mock environment], removing the need for a running server, by annotating your test class with javadoc:org.springframework.boot.webflux.test.autoconfigure.AutoConfigureWebTestClient[format=annotation] from `spring-boot-webflux-test`. -The `spring-boot-resttestclient` modules also provides a javadoc:org.springframework.boot.resttestclient.TestRestTemplate[] facility: +The `spring-boot-resttestclient` module also provides a javadoc:org.springframework.boot.resttestclient.TestRestTemplate[] facility: include-code::MyRandomPortTestRestTemplateTests[] +To use `TestRestTemplate` a dependency on `spring-boot-restclient` is also required. +Take care when adding this dependency as it will enable auto-configuration for `RestClient.Builder`. +If your main code uses `RestClient.Builder`, declare the `spring-boot-restclient` dependency so that it is on your application's main classpath and not only on its test classpath. + [[testing.spring-boot-applications.customizing-rest-test-client]] diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-utilities.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-utilities.adoc index dc65edaeccf..63b54384d42 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-utilities.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-utilities.adoc @@ -44,6 +44,9 @@ include-code::MyOutputCaptureTests[] javadoc:org.springframework.boot.resttestclient.TestRestTemplate[] is a convenience alternative to Spring's javadoc:org.springframework.web.client.RestTemplate[] that is useful in integration tests. It's provided by the `spring-boot-resttestclient` module. +A dependency on `spring-boot-restclient` is also required. +Take care when adding this dependency as it will enable auto-configuration for `RestClient.Builder`. +If your main code uses `RestClient.Builder`, declare the `spring-boot-restclient` dependency so that it is on your application's main classpath and not only on its test classpath. You can get a vanilla template or one that sends Basic HTTP authentication (with a username and password). In either case, the template is fault tolerant. diff --git a/module/spring-boot-resttestclient/build.gradle b/module/spring-boot-resttestclient/build.gradle index 8c3a783b870..2bce551e01b 100644 --- a/module/spring-boot-resttestclient/build.gradle +++ b/module/spring-boot-resttestclient/build.gradle @@ -28,10 +28,10 @@ description = "Spring Boot RestTestClient" dependencies { api(project(":core:spring-boot-test")) api(project(":module:spring-boot-http-converter")) - api(project(":module:spring-boot-restclient")) api("org.springframework:spring-web") optional(project(":core:spring-boot-autoconfigure")) + optional(project(":module:spring-boot-restclient")) optional("org.apache.httpcomponents.client5:httpclient5") optional("org.jetbrains.kotlin:kotlin-stdlib") optional("org.jetbrains.kotlin:kotlin-reflect") diff --git a/smoke-test/spring-boot-smoke-test-actuator-custom-security/build.gradle b/smoke-test/spring-boot-smoke-test-actuator-custom-security/build.gradle index 00ae0fe6cec..315ffc3a294 100644 --- a/smoke-test/spring-boot-smoke-test-actuator-custom-security/build.gradle +++ b/smoke-test/spring-boot-smoke-test-actuator-custom-security/build.gradle @@ -28,6 +28,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-actuator-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testRuntimeOnly("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-actuator-extension/build.gradle b/smoke-test/spring-boot-smoke-test-actuator-extension/build.gradle index e34f0d3a834..be1f7d170d8 100644 --- a/smoke-test/spring-boot-smoke-test-actuator-extension/build.gradle +++ b/smoke-test/spring-boot-smoke-test-actuator-extension/build.gradle @@ -26,6 +26,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-actuator-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-actuator-ui/build.gradle b/smoke-test/spring-boot-smoke-test-actuator-ui/build.gradle index 4d80c722734..8d976f7c373 100644 --- a/smoke-test/spring-boot-smoke-test-actuator-ui/build.gradle +++ b/smoke-test/spring-boot-smoke-test-actuator-ui/build.gradle @@ -28,6 +28,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-actuator-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-actuator/build.gradle b/smoke-test/spring-boot-smoke-test-actuator/build.gradle index f1173b184f5..f667e439295 100644 --- a/smoke-test/spring-boot-smoke-test-actuator/build.gradle +++ b/smoke-test/spring-boot-smoke-test-actuator/build.gradle @@ -32,6 +32,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-actuator-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testRuntimeOnly("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-devtools/build.gradle b/smoke-test/spring-boot-smoke-test-devtools/build.gradle index 1eeffaa1d2e..fdcd7f370d8 100644 --- a/smoke-test/spring-boot-smoke-test-devtools/build.gradle +++ b/smoke-test/spring-boot-smoke-test-devtools/build.gradle @@ -31,6 +31,7 @@ dependencies { implementation(project(":starter:spring-boot-starter-webmvc")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-hateoas/build.gradle b/smoke-test/spring-boot-smoke-test-hateoas/build.gradle index 6ee63de9629..0d717d8a74f 100644 --- a/smoke-test/spring-boot-smoke-test-hateoas/build.gradle +++ b/smoke-test/spring-boot-smoke-test-hateoas/build.gradle @@ -24,6 +24,7 @@ dependencies { implementation(project(":starter:spring-boot-starter-hateoas")) testImplementation(project(":starter:spring-boot-starter-hateoas-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-jersey/build.gradle b/smoke-test/spring-boot-smoke-test-jersey/build.gradle index a7b77393744..3bf4f27c926 100644 --- a/smoke-test/spring-boot-smoke-test-jersey/build.gradle +++ b/smoke-test/spring-boot-smoke-test-jersey/build.gradle @@ -28,4 +28,5 @@ dependencies { runtimeOnly("jakarta.xml.bind:jakarta.xml.bind-api") testImplementation(project(":starter:spring-boot-starter-jersey-test")) + testImplementation(project(":module:spring-boot-restclient")) } diff --git a/smoke-test/spring-boot-smoke-test-jetty-jsp/build.gradle b/smoke-test/spring-boot-smoke-test-jetty-jsp/build.gradle index 00010a9c55d..c35cb623d6b 100644 --- a/smoke-test/spring-boot-smoke-test-jetty-jsp/build.gradle +++ b/smoke-test/spring-boot-smoke-test-jetty-jsp/build.gradle @@ -39,6 +39,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-jetty")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-jetty-ssl/build.gradle b/smoke-test/spring-boot-smoke-test-jetty-ssl/build.gradle index a6084014463..cef2484d9fd 100644 --- a/smoke-test/spring-boot-smoke-test-jetty-ssl/build.gradle +++ b/smoke-test/spring-boot-smoke-test-jetty-ssl/build.gradle @@ -27,6 +27,7 @@ dependencies { } testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testRuntimeOnly("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-jetty/build.gradle b/smoke-test/spring-boot-smoke-test-jetty/build.gradle index 6e1831ac5e8..029618c207d 100644 --- a/smoke-test/spring-boot-smoke-test-jetty/build.gradle +++ b/smoke-test/spring-boot-smoke-test-jetty/build.gradle @@ -27,6 +27,7 @@ dependencies { } testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-oauth2-authorization-server/build.gradle b/smoke-test/spring-boot-smoke-test-oauth2-authorization-server/build.gradle index ca886ee1322..cf387338246 100644 --- a/smoke-test/spring-boot-smoke-test-oauth2-authorization-server/build.gradle +++ b/smoke-test/spring-boot-smoke-test-oauth2-authorization-server/build.gradle @@ -24,6 +24,7 @@ dependencies { implementation(project(":starter:spring-boot-starter-security-oauth2-authorization-server")) testImplementation(project(":starter:spring-boot-starter-security-oauth2-authorization-server-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-oauth2-client/build.gradle b/smoke-test/spring-boot-smoke-test-oauth2-client/build.gradle index a3701ffd54b..06b0d1533f0 100644 --- a/smoke-test/spring-boot-smoke-test-oauth2-client/build.gradle +++ b/smoke-test/spring-boot-smoke-test-oauth2-client/build.gradle @@ -26,6 +26,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-security-oauth2-client-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-oauth2-resource-server/build.gradle b/smoke-test/spring-boot-smoke-test-oauth2-resource-server/build.gradle index a08ffdfa87c..aa1b62e347a 100644 --- a/smoke-test/spring-boot-smoke-test-oauth2-resource-server/build.gradle +++ b/smoke-test/spring-boot-smoke-test-oauth2-resource-server/build.gradle @@ -26,6 +26,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-security-oauth2-resource-server-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("com.squareup.okhttp3:mockwebserver") } diff --git a/smoke-test/spring-boot-smoke-test-prometheus/build.gradle b/smoke-test/spring-boot-smoke-test-prometheus/build.gradle index 14cc6911a59..5f7224937aa 100644 --- a/smoke-test/spring-boot-smoke-test-prometheus/build.gradle +++ b/smoke-test/spring-boot-smoke-test-prometheus/build.gradle @@ -30,6 +30,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-micrometer-metrics-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-quartz/build.gradle b/smoke-test/spring-boot-smoke-test-quartz/build.gradle index 8dbdc136e29..ca0d434a951 100644 --- a/smoke-test/spring-boot-smoke-test-quartz/build.gradle +++ b/smoke-test/spring-boot-smoke-test-quartz/build.gradle @@ -30,6 +30,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-quartz-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.awaitility:awaitility") } diff --git a/smoke-test/spring-boot-smoke-test-saml2-service-provider/build.gradle b/smoke-test/spring-boot-smoke-test-saml2-service-provider/build.gradle index b893379a430..287ef99c893 100644 --- a/smoke-test/spring-boot-smoke-test-saml2-service-provider/build.gradle +++ b/smoke-test/spring-boot-smoke-test-saml2-service-provider/build.gradle @@ -26,6 +26,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-security-saml2-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-secure-jersey/build.gradle b/smoke-test/spring-boot-smoke-test-secure-jersey/build.gradle index a209da2aeda..9df539fdb64 100644 --- a/smoke-test/spring-boot-smoke-test-secure-jersey/build.gradle +++ b/smoke-test/spring-boot-smoke-test-secure-jersey/build.gradle @@ -26,4 +26,5 @@ dependencies { implementation(project(":starter:spring-boot-starter-security")) testImplementation(project(":starter:spring-boot-starter-jersey-test")) + testImplementation(project(":module:spring-boot-restclient")) } diff --git a/smoke-test/spring-boot-smoke-test-servlet/build.gradle b/smoke-test/spring-boot-smoke-test-servlet/build.gradle index a7dc63bb54d..f278bea98cb 100644 --- a/smoke-test/spring-boot-smoke-test-servlet/build.gradle +++ b/smoke-test/spring-boot-smoke-test-servlet/build.gradle @@ -25,6 +25,7 @@ dependencies { implementation(project(":starter:spring-boot-starter-security")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation(project(":module:spring-boot-resttestclient")) testImplementation(project(":starter:spring-boot-starter-test")) diff --git a/smoke-test/spring-boot-smoke-test-session-jdbc/build.gradle b/smoke-test/spring-boot-smoke-test-session-jdbc/build.gradle index be67bd6a359..e0870c600fb 100644 --- a/smoke-test/spring-boot-smoke-test-session-jdbc/build.gradle +++ b/smoke-test/spring-boot-smoke-test-session-jdbc/build.gradle @@ -31,6 +31,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-session-jdbc-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-tomcat-jsp/build.gradle b/smoke-test/spring-boot-smoke-test-tomcat-jsp/build.gradle index 738079232f7..1a88f98bf79 100644 --- a/smoke-test/spring-boot-smoke-test-tomcat-jsp/build.gradle +++ b/smoke-test/spring-boot-smoke-test-tomcat-jsp/build.gradle @@ -34,6 +34,7 @@ dependencies { providedRuntime("org.apache.tomcat.embed:tomcat-embed-jasper") testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-tomcat-multi-connectors/build.gradle b/smoke-test/spring-boot-smoke-test-tomcat-multi-connectors/build.gradle index e1eb2f9a46b..6f172af50b9 100644 --- a/smoke-test/spring-boot-smoke-test-tomcat-multi-connectors/build.gradle +++ b/smoke-test/spring-boot-smoke-test-tomcat-multi-connectors/build.gradle @@ -24,6 +24,7 @@ dependencies { implementation(project(":starter:spring-boot-starter-webmvc")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-tomcat-ssl/build.gradle b/smoke-test/spring-boot-smoke-test-tomcat-ssl/build.gradle index b1ea9514082..4894f49046e 100644 --- a/smoke-test/spring-boot-smoke-test-tomcat-ssl/build.gradle +++ b/smoke-test/spring-boot-smoke-test-tomcat-ssl/build.gradle @@ -25,6 +25,7 @@ dependencies { implementation(project(":starter:spring-boot-starter-webmvc")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-tomcat/build.gradle b/smoke-test/spring-boot-smoke-test-tomcat/build.gradle index 0a36f870b32..fffa43a92d1 100644 --- a/smoke-test/spring-boot-smoke-test-tomcat/build.gradle +++ b/smoke-test/spring-boot-smoke-test-tomcat/build.gradle @@ -23,8 +23,8 @@ description = "Spring Boot Tomcat smoke test" dependencies { implementation(project(":starter:spring-boot-starter-webmvc")) - testImplementation(project(":module:spring-boot-resttestclient")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-traditional/build.gradle b/smoke-test/spring-boot-smoke-test-traditional/build.gradle index e3c2a1fcf52..6753a26598f 100644 --- a/smoke-test/spring-boot-smoke-test-traditional/build.gradle +++ b/smoke-test/spring-boot-smoke-test-traditional/build.gradle @@ -33,6 +33,7 @@ dependencies { providedRuntime(project(":starter:spring-boot-starter-tomcat-runtime")) providedRuntime("org.apache.tomcat.embed:tomcat-embed-jasper") + testImplementation(project(":module:spring-boot-restclient")) testImplementation(project(":module:spring-boot-resttestclient")) testImplementation(project(":starter:spring-boot-starter-test")) testImplementation("org.apache.httpcomponents.client5:httpclient5") diff --git a/smoke-test/spring-boot-smoke-test-web-freemarker/build.gradle b/smoke-test/spring-boot-smoke-test-web-freemarker/build.gradle index 9fb81b15151..4af7f28870e 100644 --- a/smoke-test/spring-boot-smoke-test-web-freemarker/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-freemarker/build.gradle @@ -26,6 +26,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-freemarker-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-web-groovy-templates/build.gradle b/smoke-test/spring-boot-smoke-test-web-groovy-templates/build.gradle index f4b72a7d746..4df7c90811a 100644 --- a/smoke-test/spring-boot-smoke-test-web-groovy-templates/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-groovy-templates/build.gradle @@ -28,6 +28,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-groovy-templates-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-web-jsp/build.gradle b/smoke-test/spring-boot-smoke-test-web-jsp/build.gradle index 3d20bf9cd7b..a75640d2042 100644 --- a/smoke-test/spring-boot-smoke-test-web-jsp/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-jsp/build.gradle @@ -34,6 +34,7 @@ dependencies { providedRuntime("org.glassfish.web:jakarta.servlet.jsp.jstl") testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-web-method-security/build.gradle b/smoke-test/spring-boot-smoke-test-web-method-security/build.gradle index aee38e0e989..cffdd8a35f7 100644 --- a/smoke-test/spring-boot-smoke-test-web-method-security/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-method-security/build.gradle @@ -27,6 +27,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-security-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-web-mustache/build.gradle b/smoke-test/spring-boot-smoke-test-web-mustache/build.gradle index 420fcac236b..56b04dd795b 100644 --- a/smoke-test/spring-boot-smoke-test-web-mustache/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-mustache/build.gradle @@ -26,6 +26,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-mustache-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-web-secure-custom/build.gradle b/smoke-test/spring-boot-smoke-test-web-secure-custom/build.gradle index aec79b96b92..b09adf66aaf 100644 --- a/smoke-test/spring-boot-smoke-test-web-secure-custom/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-secure-custom/build.gradle @@ -26,6 +26,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-security-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-web-secure-jdbc/build.gradle b/smoke-test/spring-boot-smoke-test-web-secure-jdbc/build.gradle index b6abc576cdf..1f5b8b7da52 100644 --- a/smoke-test/spring-boot-smoke-test-web-secure-jdbc/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-secure-jdbc/build.gradle @@ -29,6 +29,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-security-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-web-secure/build.gradle b/smoke-test/spring-boot-smoke-test-web-secure/build.gradle index 729460af673..7f619a10f68 100644 --- a/smoke-test/spring-boot-smoke-test-web-secure/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-secure/build.gradle @@ -26,6 +26,7 @@ dependencies { testImplementation(project(":starter:spring-boot-starter-security-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation("org.apache.httpcomponents.client5:httpclient5") } diff --git a/smoke-test/spring-boot-smoke-test-web-static/build.gradle b/smoke-test/spring-boot-smoke-test-web-static/build.gradle index 61ea11439e5..2c2ee011f50 100644 --- a/smoke-test/spring-boot-smoke-test-web-static/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-static/build.gradle @@ -35,6 +35,7 @@ dependencies { runtimeOnly("org.webjars:jquery:2.0.3-1") testImplementation(project(":starter:spring-boot-starter-webmvc-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-web-thymeleaf/build.gradle b/smoke-test/spring-boot-smoke-test-web-thymeleaf/build.gradle index fd7bdb7114d..7be44cff902 100644 --- a/smoke-test/spring-boot-smoke-test-web-thymeleaf/build.gradle +++ b/smoke-test/spring-boot-smoke-test-web-thymeleaf/build.gradle @@ -25,9 +25,8 @@ dependencies { implementation(project(":starter:spring-boot-starter-webmvc")) implementation(project(":starter:spring-boot-starter-validation")) - testImplementation(project(":module:spring-boot-webmvc-test")) testImplementation(project(":starter:spring-boot-starter-webmvc-test")) - testImplementation(project(":starter:spring-boot-starter-test")) + testImplementation(project(":module:spring-boot-restclient")) } tasks.named("compileTestJava") { diff --git a/smoke-test/spring-boot-smoke-test-webflux/build.gradle b/smoke-test/spring-boot-smoke-test-webflux/build.gradle index 680680ae63f..99adfa023fa 100644 --- a/smoke-test/spring-boot-smoke-test-webflux/build.gradle +++ b/smoke-test/spring-boot-smoke-test-webflux/build.gradle @@ -25,6 +25,7 @@ dependencies { implementation(project(":starter:spring-boot-starter-mustache")) implementation(project(":starter:spring-boot-starter-webflux")) + testImplementation(project(":module:spring-boot-restclient")) testImplementation(project(":module:spring-boot-resttestclient")) testImplementation(project(":starter:spring-boot-starter-webflux-test")) testImplementation("io.projectreactor:reactor-test") diff --git a/system-test/spring-boot-deployment-system-tests/build.gradle b/system-test/spring-boot-deployment-system-tests/build.gradle index e496af13dcc..641c3e52624 100644 --- a/system-test/spring-boot-deployment-system-tests/build.gradle +++ b/system-test/spring-boot-deployment-system-tests/build.gradle @@ -41,6 +41,7 @@ dependencies { implementation(project(":starter:spring-boot-starter-actuator")) systemTestImplementation(enforcedPlatform(project(path: ":platform:spring-boot-internal-dependencies"))) + systemTestImplementation(project(":module:spring-boot-restclient")) systemTestImplementation(project(":module:spring-boot-resttestclient")) systemTestImplementation(project(":starter:spring-boot-starter-test")) systemTestImplementation(project(":test-support:spring-boot-test-support"))