Skip to content

Commit

Permalink
Fix Apache HTTP client dependency
Browse files Browse the repository at this point in the history
Closes gh-35
  • Loading branch information
sdeleuze committed Jan 4, 2024
1 parent e567a0a commit 28ef387
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<scope>test</scope>
</dependency>
----
Expand All @@ -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'
----
====

Expand Down

0 comments on commit 28ef387

Please sign in to comment.