diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 37e144c4af..a4441dfcc2 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -59,10 +59,10 @@ jobs:
echo 'HC_BUILD_TOOLCHAIN_VERSION=${{ matrix.java }}' >> "$GITHUB_ENV"
;;
esac
- # The httpclient5-jakarta-rest-client module is compiled for Java 11, so it must be
- # excluded from the reactor whenever the selected toolchain is older than 11.
+ # The httpclient5-jakarta-rest-client module is compiled for Java 17, so it must be
+ # excluded from the reactor whenever the selected toolchain is older than 17.
case '${{ matrix.java }}' in
- 8)
+ 8|11)
echo 'HC_PROFILE_ARGS=-Dhc.jakarta-rest-client.skip=true' >> "$GITHUB_ENV"
;;
*)
diff --git a/httpclient5-jakarta-rest-client/pom.xml b/httpclient5-jakarta-rest-client/pom.xml
index f36508ca1d..26f94c1f91 100644
--- a/httpclient5-jakarta-rest-client/pom.xml
+++ b/httpclient5-jakarta-rest-client/pom.xml
@@ -37,8 +37,8 @@
org.apache.hc.client5.http.rest
- 11
- 11
+ 17
+ 17
diff --git a/pom.xml b/pom.xml
index 9bc6df3b05..416014ec0d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,7 +86,7 @@
1.64.0
1.26.2
2.9.3
- 3.1.0
+ 4.0.0
3.27.7
@@ -463,8 +463,8 @@
jakarta-rest-client