Skip to content

Commit

Permalink
Merge pull request #133 from quarkiverse/feat/q-392-update
Browse files Browse the repository at this point in the history
feat: update quarkus to 3.9.2 version
  • Loading branch information
andrejpetras authored Apr 9, 2024
2 parents 5b8a7b0 + 4196c67 commit 51ce992
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/includes/attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:project-version: 1.5.0
:quarkus-version: 3.8.2
:quarkus-version: 3.9.2

:quarkus-mockserver-url: https://github.com/quarkiverse/quarkus-mockserver

Expand Down
2 changes: 1 addition & 1 deletion examples/local/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jackson</artifactId>
<artifactId>quarkus-rest-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public Map<String, Object> post(Data data) {
@POST
@Path("2")
public Response post2(Data data) {
try {
return Response.fromResponse(client.getData2(Map.of(data.key, data.value))).build();
try (Response response = client.getData2(Map.of(data.key, data.value))) {
String tmp = response.readEntity(String.class);
return Response.ok(tmp).build();
} catch (WebApplicationException ex) {
return Response.fromResponse(ex.getResponse()).build();
}
Expand Down
4 changes: 2 additions & 2 deletions examples/local/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ quarkus.http.test-port=0
%dev.quarkus.mockserver.devservices.log=true

%dev.quarkus.mockserver.devservices.reuse=false
%dev.activity-client/mp-rest/url=${quarkus.mockserver.endpoint}
%test.activity-client/mp-rest/url=${quarkus.mockserver.endpoint}
%dev.quarkus.rest-client.activity-client.url=${quarkus.mockserver.endpoint}
%test.quarkus.rest-client.activity-client.url=${quarkus.mockserver.endpoint}
2 changes: 1 addition & 1 deletion integration-tests/base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jackson</artifactId>
<artifactId>quarkus-rest-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public Map<String, Object> post(Data data) {
@POST
@Path("2")
public Response post2(Data data) {
try {
return Response.fromResponse(client.getData2(Map.of(data.key, data.value))).build();
try (Response response = client.getData2(Map.of(data.key, data.value))) {
String tmp = response.readEntity(String.class);
return Response.ok(tmp).build();
} catch (WebApplicationException ex) {
return Response.fromResponse(ex.getResponse()).build();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
quarkus.http.test-port=0

activity-client/mp-rest/url=${quarkus.mockserver.endpoint}
%test.activity-client/mp-rest/url=${quarkus.mockserver.endpoint}
quarkus.rest-client.activity-client.url=${quarkus.mockserver.endpoint}
%test.quarkus.rest-client.activity-client.url=${quarkus.mockserver.endpoint}
2 changes: 1 addition & 1 deletion integration-tests/docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jackson</artifactId>
<artifactId>quarkus-rest-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public Map<String, Object> post(Data data) {
@POST
@Path("2")
public Response post2(Data data) {
try {
return Response.fromResponse(client.getData2(Map.of(data.key, data.value))).build();
try (Response response = client.getData2(Map.of(data.key, data.value))) {
String tmp = response.readEntity(String.class);
return Response.ok(tmp).build();
} catch (WebApplicationException ex) {
return Response.fromResponse(ex.getResponse()).build();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
quarkus.http.test-port=0
example-client/mp-rest/url=${quarkus.mockserver.endpoint}
%test.example-client/mp-rest/url=${quarkus.mockserver.endpoint}
quarkus.rest-client.example-client.url=${quarkus.mockserver.endpoint}
%test.quarkus.rest-client.example-client.url=${quarkus.mockserver.endpoint}

quarkus.container-image.build=true
quarkus.container-image.tag=latest
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.version>3.8.2</quarkus.version>
<quarkus.version>3.9.2</quarkus.version>
<testcontainers.mockserver.version>1.19.7</testcontainers.mockserver.version>
<mockserver-client.version>5.15.0</mockserver-client.version>
<maven.compiler.parameters>true</maven.compiler.parameters>
Expand Down

0 comments on commit 51ce992

Please sign in to comment.