Skip to content

Commit

Permalink
Update: update rest labs to 3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffael H committed May 8, 2024
1 parent 1e70c8b commit 7bb7c7c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 26 deletions.
2 changes: 1 addition & 1 deletion config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ lab_code_basedir = "/code/"
solution_code_basedir = "/solution/"

#versions
quarkusVersion = "3.4.3"
quarkusVersion = "3.10.0"
mutinyVersion = "2.5.1"
confluentKafkaAvroVersion = "7.5.1"
openJdkImage = "registry.access.redhat.com/ubi8/openjdk-17:1.16"
Expand Down
6 changes: 3 additions & 3 deletions content/en/docs/02.0/22_implementing-rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Jackson functionalities for our REST interfaces.
To add an extension to your existing Quarkus application simply use:

```bash
./mvnw quarkus:add-extension -Dextensions="quarkus-resteasy-reactive-jackson"
./mvnw quarkus:add-extension -Dextensions="quarkus-rest-jackson"
```

To see the available extensions you can use:
Expand Down Expand Up @@ -106,7 +106,7 @@ mvn io.quarkus:quarkus-maven-plugin:{{% param "quarkusVersion" %}}:create \
-DprojectArtifactId=quarkus-rest-data-consumer \
-DclassName="ch.puzzle.quarkustechlab.restconsumer.boundary.DataConsumerResource" \
-Dpath="/data" \
-Dextensions="rest-client-reactive-jackson"
-Dextensions="rest-rest-jackson"

```

Expand Down Expand Up @@ -208,6 +208,6 @@ When you have both microservices running, try sending a request to the consumer.

{{% details title="Hint" %}}

To get the full json output you have to add the `resteasy-reactive-jackson` extension and make sure the media type is set to json.
To get the full json output you have to add the `rest-jackson` extension and make sure the media type is set to json.

{{% /details %}}
2 changes: 1 addition & 1 deletion content/en/docs/02.0/25_reactive-programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ We will start similar to the previous example with a producer which exposes data

### Task {{% param sectionnumber %}}.1.1: Create producer project

Start by creating a project `quarkus-reactive-rest-producer`. Add the extensions `quarkus-resteasy-reactive-jackson` to the project.
Start by creating a project `quarkus-reactive-rest-producer`. Add the extensions `quarkus-rest-jackson` to the project.

{{% details title="Hint" %}}

Expand Down
17 changes: 9 additions & 8 deletions solution/quarkus-reactive-rest-consumer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<artifactId>quarkus-reactive-rest-consumer</artifactId>
<version>1.0.0</version>
<properties>
<compiler-plugin.version>3.11.0</compiler-plugin.version>
<maven.compiler.release>17</maven.compiler.release>
<compiler-plugin.version>3.12.1</compiler-plugin.version>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>3.4.2</quarkus.platform.version>
<quarkus.platform.version>3.10.0</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.1.2</surefire-plugin.version>
<surefire-plugin.version>3.2.3</surefire-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
Expand All @@ -30,19 +30,19 @@
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive-jackson</artifactId>
<artifactId>quarkus-rest-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive-jackson</artifactId>
<artifactId>quarkus-rest-client-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive</artifactId>
<artifactId>quarkus-rest</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down Expand Up @@ -122,7 +122,8 @@
</activation>
<properties>
<skipITs>false</skipITs>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.enabled>true</quarkus.native.enabled>
<quarkus.package.jar.enabled>false</quarkus.package.jar.enabled>
</properties>
</profile>
</profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,13 @@
import jakarta.ws.rs.core.Response;
import org.eclipse.microprofile.rest.client.inject.RestClient;

@Path("/hello")
@Path("/data")
public class DataResource {

@Inject
@RestClient
DataService dataService;

@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
return "Hello from RESTEasy Reactive";
}

@GET
@Produces(MediaType.APPLICATION_JSON)
public Uni<Response> findAll() {
Expand Down
13 changes: 7 additions & 6 deletions solution/quarkus-reactive-rest-producer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<artifactId>quarkus-reactive-rest-producer</artifactId>
<version>1.0.0</version>
<properties>
<compiler-plugin.version>3.11.0</compiler-plugin.version>
<compiler-plugin.version>3.12.1</compiler-plugin.version>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>3.4.2</quarkus.platform.version>
<quarkus.platform.version>3.10.0</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.1.2</surefire-plugin.version>
<surefire-plugin.version>3.2.3</surefire-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
Expand All @@ -30,15 +30,15 @@
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive-jackson</artifactId>
<artifactId>quarkus-rest-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive</artifactId>
<artifactId>quarkus-rest</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down Expand Up @@ -122,7 +122,8 @@
</activation>
<properties>
<skipITs>false</skipITs>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.enabled>true</quarkus.native.enabled>
<quarkus.package.jar.enabled>false</quarkus.package.jar.enabled>
</properties>
</profile>
</profiles>
Expand Down

0 comments on commit 7bb7c7c

Please sign in to comment.