Skip to content

Commit 88905ea

Browse files
committed
Upgrade to Apache HttpClient 5.4
This commit also updates the external Javadoc link to avoid the following warning in the build. URL https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/package-list was redirected to https://hc.apache.org/httpcomponents-client-5.4.x/current/httpclient5/apidocs/package-list Closes gh-33587
1 parent 7df9db3 commit 88905ea

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ configure([rootProject] + javaProjects) { project ->
9595
"https://fasterxml.github.io/jackson-core/javadoc/2.14/",
9696
"https://fasterxml.github.io/jackson-databind/javadoc/2.14/",
9797
"https://fasterxml.github.io/jackson-dataformat-xml/javadoc/2.14/",
98-
"https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/",
98+
"https://hc.apache.org/httpcomponents-client-5.4.x/current/httpclient5/apidocs/",
9999
"https://projectreactor.io/docs/test/release/api/",
100100
"https://junit.org/junit4/javadoc/4.13.2/",
101101
// TODO Uncomment link to JUnit 5 docs once we execute Gradle with Java 18+.

framework-platform/framework-platform.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ dependencies {
101101
api("org.apache.derby:derby:10.16.1.1")
102102
api("org.apache.derby:derbyclient:10.16.1.1")
103103
api("org.apache.derby:derbytools:10.16.1.1")
104-
api("org.apache.httpcomponents.client5:httpclient5:5.3.1")
104+
api("org.apache.httpcomponents.client5:httpclient5:5.4")
105105
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.2.5")
106106
api("org.apache.poi:poi-ooxml:5.2.5")
107107
api("org.apache.tomcat.embed:tomcat-embed-core:10.1.28")

spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public void setHttpContextFactory(BiFunction<HttpMethod, URI, HttpContext> httpC
205205

206206

207207
@Override
208+
@SuppressWarnings("deprecation")
208209
public ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod) throws IOException {
209210
HttpClient client = getHttpClient();
210211

0 commit comments

Comments
 (0)