From 28ef387e466fb3ee870d49ef3da50c1fe8bd9aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Thu, 4 Jan 2024 09:23:05 +0100 Subject: [PATCH] Fix Apache HTTP client dependency Closes gh-35 --- README.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.adoc b/README.adoc index e7ad869..aa57b82 100644 --- a/README.adoc +++ b/README.adoc @@ -77,20 +77,20 @@ NOTE: If your IDE has the Spring Initializr integration, you can complete this p NOTE: You can also fork the project from Github and open it in your IDE or other editor. -=== Adding the `httpclient` Dependency +=== Adding the `httpclient5` Dependency The tests (in `complete/src/test/java/com/example/restservicecors/GreetingIntegrationTests.java`) -require the Apache `httpclient` library. +require the Apache `httpclient5` library. -To add the Apache `httpclient` library to Maven, add the following dependency: +To add the Apache `httpclient5` library to Maven, add the following dependency: ==== [source,xml] ---- - org.apache.httpcomponents - httpclient + org.apache.httpcomponents.client5 + httpclient5 test ---- @@ -105,12 +105,12 @@ include::complete/pom.xml[] ---- ==== -To add the Apache `httpclient` library to Gradle, add the following dependency: +To add the Apache `httpclient5` library to Gradle, add the following dependency: ==== [source,text] ---- -testImplementation 'org.apache.httpcomponents:httpclient' +testImplementation 'org.apache.httpcomponents.client5:httpclient5' ---- ====