Adapt build dependencies to httpclient5
As htttpclient 4.x is not supported anymore by `RestTemplate`, this commit changes such dependencies to httpclient5 instead. In some cases, the httpclient 4.x was transitively brought by a non-Spring dependency. See gh-32461
This commit is contained in:
@@ -31,9 +31,7 @@ dependencies {
|
||||
intTestImplementation(project(":spring-boot-project:spring-boot-autoconfigure"))
|
||||
intTestImplementation(project(":spring-boot-project:spring-boot-test"))
|
||||
intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
|
||||
intTestImplementation("org.apache.httpcomponents:httpclient") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
intTestImplementation("org.apache.httpcomponents.client5:httpclient5")
|
||||
intTestImplementation("org.assertj:assertj-core")
|
||||
intTestImplementation("org.awaitility:awaitility")
|
||||
intTestImplementation("org.junit.jupiter:junit-jupiter")
|
||||
|
||||
@@ -86,6 +86,7 @@ dependencies {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
exclude group: "xml-apis", module: "xml-apis"
|
||||
}
|
||||
implementation("org.apache.httpcomponents.client5:httpclient5")
|
||||
implementation("org.apache.commons:commons-dbcp2") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
|
||||
@@ -18,9 +18,7 @@ dependencies {
|
||||
optional("jakarta.json.bind:jakarta.json.bind-api")
|
||||
optional("jakarta.servlet:jakarta.servlet-api")
|
||||
optional("junit:junit")
|
||||
optional("org.apache.httpcomponents:httpclient") {
|
||||
exclude(group: "commons-logging", module: "commons-logging")
|
||||
}
|
||||
optional("org.apache.httpcomponents.client5:httpclient5")
|
||||
optional("org.assertj:assertj-core")
|
||||
optional("org.hamcrest:hamcrest-core")
|
||||
optional("org.hamcrest:hamcrest-library")
|
||||
|
||||
@@ -47,9 +47,6 @@ dependencies {
|
||||
optional("org.apache.commons:commons-dbcp2") {
|
||||
exclude(group: "commons-logging", module: "commons-logging")
|
||||
}
|
||||
optional("org.apache.httpcomponents:httpclient") {
|
||||
exclude(group: "commons-logging", module: "commons-logging")
|
||||
}
|
||||
optional("org.apache.httpcomponents.client5:httpclient5")
|
||||
optional("org.apache.logging.log4j:log4j-api")
|
||||
optional("org.apache.logging.log4j:log4j-core")
|
||||
|
||||
Reference in New Issue
Block a user