Skip to content

Commit

Permalink
Upgrade to httpclient5 (#3042)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-tay authored Nov 11, 2023
1 parent 43a292e commit 5c39308
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions elide-async/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import com.yahoo.elide.core.request.route.Route;
import com.yahoo.elide.core.security.User;
import com.yahoo.elide.jsonapi.JsonApi;
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URIBuilder;
import org.apache.hc.core5.http.NameValuePair;
import org.apache.hc.core5.net.URIBuilder;

import lombok.extern.slf4j.Slf4j;

Expand Down Expand Up @@ -46,7 +46,6 @@ public ElideResponse<String> execute(AsyncApi queryObj, RequestScope scope)
Map<String, List<String>> queryParams = getQueryParams(uri);
log.debug("Extracted QueryParams from AsyncQuery Object: {}", queryParams);

//TODO - we need to add the baseUrlEndpoint to the queryObject.
Route route = Route.builder().baseUrl(scope.getRoute().getBaseUrl()).path(getPath(uri)).parameters(queryParams)
.headers(scope.getRoute().getHeaders()).apiVersion(apiVersion).build();
ElideResponse<String> response = jsonApi.get(route, user, requestUUID);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.yahoo.elide.jsonapi.EntityProjectionMaker;
import com.yahoo.elide.jsonapi.JsonApiRequestScope;

import org.apache.http.client.utils.URIBuilder;
import org.apache.hc.core5.net.URIBuilder;

import lombok.extern.slf4j.Slf4j;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import com.yahoo.elide.core.utils.DefaultClassScanner;
import com.yahoo.elide.jsonapi.JsonApiSettings;

import org.apache.http.NoHttpResponseException;
import org.apache.hc.core5.http.NoHttpResponseException;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down
15 changes: 8 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<hibernate-validator.version>8.0.0.Final</hibernate-validator.version>
<hibernate-search.version>6.2.1.Final</hibernate-search.version>
<hjson.version>3.0.1</hjson.version>
<httpclient.version>4.5.14</httpclient.version>
<httpclient5.version>5.2.1</httpclient5.version>
<gson.version>2.10.1</gson.version>
<h2.version>2.2.224</h2.version>
<hikaricp.version>5.0.1</hikaricp.version>
Expand Down Expand Up @@ -149,6 +149,7 @@
<tomcat.version>10.1.13</tomcat.version>
<mockito.version>5.6.0</mockito.version>


<build-helper-maven-plugin.version>3.4.0</build-helper-maven-plugin.version>
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
<checkstyle.version>10.12.4</checkstyle.version>
Expand Down Expand Up @@ -426,7 +427,7 @@
<groupId>org.owasp.encoder</groupId>
<artifactId>encoder</artifactId>
<version>${encoder.version}</version>
</dependency>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
Expand Down Expand Up @@ -462,9 +463,9 @@
<version>${handlebars.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>${httpclient5.version}</version>
</dependency>
<dependency>
<groupId>com.github.opendevl</groupId>
Expand Down Expand Up @@ -492,12 +493,12 @@
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<version>${jsonassert.version}</version>
</dependency>
</dependency>
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-lambda</artifactId>
<version>${system-lambda.version}</version>
</dependency>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand Down

0 comments on commit 5c39308

Please sign in to comment.