Skip to content

Commit

Permalink
chore(client): version release
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Jan 17, 2024
1 parent 72d4c47 commit 2b88a09
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions interweb-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
</parent>

<artifactId>interweb-client</artifactId>
<version>4.0.7</version>
<version>4.0.12</version>
<packaging>jar</packaging>

<name>Interweb Client</name>

<properties>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.release>17</maven.compiler.release>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public <T> T sendGetRequest(final String apiPath, final Map<String, String> para
HttpResponse<String> response = sendRequest(builder);
return mapper.readValue(response.body(), valueType);
} catch (IOException e) {
throw new InterwebException("An error occurred during Interweb request " + apiPath, e);
throw new InterwebException("Failed GET request " + apiPath, e);
}
}

Expand All @@ -149,7 +149,7 @@ public <T> T sendPostRequest(final String apiPath, final Object query, Class<T>
HttpResponse<String> response = sendRequest(builder);
return mapper.readValue(response.body(), valueType);
} catch (IOException e) {
throw new InterwebException("An error occurred during Interweb request " + query, e);
throw new InterwebException("Failed POST request " + query, e);
}
}

Expand All @@ -162,7 +162,7 @@ public HttpResponse<String> sendRequest(final HttpRequest.Builder builder) throw
HttpResponse<String> response = client.send(builder.build(), HttpResponse.BodyHandlers.ofString());

if (response.statusCode() != 200) {
throw new InterwebException("Interweb request failed, response: " + response.body());
throw new InterwebException("Bad response: " + response.statusCode() + ", " + response.body());
}

return response;
Expand Down
4 changes: 4 additions & 0 deletions interweb-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

<name>Interweb-core</name>

<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down

0 comments on commit 2b88a09

Please sign in to comment.