Skip to content

Commit 1758f50

Browse files
committed
Add spring-boot-http-codec as spring-boot-webclient needs it
108ca64 trimmed down the dependencies of spring-boot-starter-test but it went too far. Marking spring-boot-webclient as non-transitive meant that spring-boot-http-codec was no longer on the classpath. However, it's a required dependency of the spring-boot-webclient auto-configuration due to an auto-configuration after reference to CodecsAutoConfiguration.class. This commit adds spring-boot-http-codec as a direct non-transitive dependency. This should be sufficient to allow spring-boot-webclient's auto-configuration to function while still minimizing the effects of adding spring-boot-starter-test to an app. See gh-4629
1 parent ec20182 commit 1758f50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ dependencies {
2525
api(project(":module:spring-boot-http-client")) {
2626
transitive = false
2727
}
28+
api(project(":module:spring-boot-http-codec")) {
29+
transitive = false
30+
}
2831
api(project(":module:spring-boot-restclient")) {
2932
transitive = false
3033
}

0 commit comments

Comments
 (0)