Skip to content

Commit 3095815

Browse files
authored
Merge pull request #591 from gastaldi/update_314
Bump to Quarkus 3.14.3
2 parents c2cf88c + 1594048 commit 3095815

File tree

11 files changed

+34
-41
lines changed

11 files changed

+34
-41
lines changed

quarkus-workshop-super-heroes/docs/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The default build will take around 50m.
4646
<!-- Note! Any versions listed here should have a dummy dependency clause so dependabot manages the versions -->
4747
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
4848
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
49-
<quarkus.platform.version>3.6.0</quarkus.platform.version>
49+
<quarkus.platform.version>3.14.3</quarkus.platform.version>
5050
<quarkus.pact.version>1.3.0</quarkus.pact.version>
5151
<semantic-kernel.version>0.2.11-alpha</semantic-kernel.version>
5252
<compiler-plugin.version>3.11.0</compiler-plugin.version>
@@ -153,7 +153,7 @@ The default build will take around 50m.
153153
<jdk-version>${maven.compiler.source}</jdk-version>
154154
<!-- NOTE! Any version listed here should have an entry in the dependencies, so that dependabot keeps docs in sync with implementation -->
155155
<graalvm-version>22.3</graalvm-version>
156-
<maven-version>3.8.x</maven-version>
156+
<maven-version>3.9.x</maven-version>
157157
<quarkus-version>${quarkus.platform.version}</quarkus-version>
158158
<compiler-plugin-version>${compiler-plugin.version}</compiler-plugin-version>
159159
<surefire-plugin-version>${surefire-plugin.version}</surefire-plugin-version>

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-introduction/introduction-installing-graalvm.adoc

+3-10
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,6 @@ endif::use-mac[]
103103
104104
Once installed, define the `GRAALVM_HOME` environment variable to point to the directory where GraalVM is installed (eg. on Mac OS X it could be `~/.sdkman/candidates/java/{graalvm-version}.r{jdk-version}-grl`).
105105
106-
The `native-image` tool must be installed.
107-
It can be done by running the following command under `$GRAALVM_HOME/bin`
108-
109-
[source,shell]
110-
----
111-
./gu install native-image
112-
----
113-
114-
from your GraalVM `bin` directory.
115106
116107
ifdef::use-mac[]
117108
[NOTE]
@@ -141,6 +132,8 @@ You should get something like:
141132
142133
[source,shell]
143134
----
144-
GraalVM 22.3.1 Java 17 CE (Java Version 17.0.6+10-jvmci-22.3-b13)
135+
native-image 22.0.2 2024-07-16
136+
OpenJDK Runtime Environment Mandrel-24.0.2.0-Final (build 22.0.2+9)
137+
OpenJDK 64-Bit Server VM Mandrel-24.0.2.0-Final (build 22.0.2+9, mixed mode)
145138
----
146139

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-microservices/microservices-fight.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Open a terminal and run the following command:
2727
-DprojectArtifactId=rest-fights \
2828
-DclassName="io.quarkus.workshop.superheroes.fight.FightResource" \
2929
-Dpath="api/fights" \
30-
-Dextensions="jdbc-postgresql,hibernate-orm-panache,hibernate-validator,quarkus-resteasy-reactive-jackson,smallrye-openapi,kafka"
30+
-Dextensions="jdbc-postgresql,hibernate-orm-panache,hibernate-validator,rest-jackson,smallrye-openapi,kafka"
3131
----
3232

3333
If you open the `pom.xml` file, you will see that the following extensions have been imported:
@@ -36,7 +36,7 @@ If you open the `pom.xml` file, you will see that the following extensions have
3636
* `io.quarkus:quarkus-hibernate-validator`
3737
* `io.quarkus:quarkus-smallrye-openapi`
3838
* `io.quarkus:quarkus-messaging-kafka`
39-
* `io.quarkus:quarkus-resteasy-reactive-jackson`
39+
* `io.quarkus:quarkus-rest-jackson`
4040
* `io.quarkus:quarkus-jdbc-postgresql`
4141
--
4242

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-reactive/reactive.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ include::{plantDir}/3-reactive-physical-architecture.puml[]
1717
In the following sections, you will learn:
1818

1919
* How to create a new reactive Quarkus application
20-
* How to implement REST API using JAX-RS and the RESTEasy Reactive extension using a reactive development model
20+
* How to implement REST API using JAX-RS and the Quarkus REST extension using a reactive development model
2121
* How to access your database using Hibernate Reactive with Panache
2222
* How to use transactions the reactive way
2323

@@ -54,13 +54,13 @@ Open a terminal and run the following command under the `quarkus-workshop-super-
5454
-DprojectArtifactId=rest-heroes \
5555
-DclassName="io.quarkus.workshop.superheroes.hero.HeroResource" \
5656
-Dpath="api/heroes" \
57-
-Dextensions="resteasy-reactive-jackson,quarkus-hibernate-validator,quarkus-smallrye-openapi,quarkus-hibernate-reactive-panache,quarkus-reactive-pg-client"
57+
-Dextensions="rest-jackson,quarkus-hibernate-validator,quarkus-smallrye-openapi,quarkus-hibernate-reactive-panache,quarkus-reactive-pg-client"
5858
----
5959
--
6060

6161
As you can see, we can select multiple extensions during the project creation:
6262

63-
* `resteasy-reactive-jackson` provides RESTEasy Reactive and the ability to map JSON objects,
63+
* `rest-jackson` provides Quarkus REST and the ability to map JSON objects,
6464
* `quarkus-hibernate-validator` provides the Hibernate Validator support,
6565
* `quarkus-smallrye-openapi` provides the OpenAPI descriptor support and the Swagger UI in the dev console,
6666
* `quarkus-hibernate-reactive-panache` provides Panache entity supports using Hibernate Reactive, an ORM using reactive database drivers,

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-rest/rest-bootstrapping.adoc

+17-17
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ Open a terminal and run the following command under the `quarkus-workshop-super-
2020
-DprojectArtifactId=rest-villains \
2121
-DclassName="io.quarkus.workshop.superheroes.villain.VillainResource" \
2222
-Dpath="api/villains" \
23-
-Dextensions="resteasy-reactive-jackson"
23+
-Dextensions="rest-jackson"
2424
----
2525

2626
[NOTE]
2727
====
28-
Notice that we scaffold the project with a reactive implementation of RestEasy (`resteasy-reactive-jackson`).
28+
Notice that we scaffold the project with Quarkus REST (`rest-jackson`).
2929
This is the recommended way to develop REST applications with Quarkus even if we use the imperative programming model in the Villain microservice.
3030
====
3131

3232
Remember that `mvnw` is the maven wrapper. It behaves like `mvn`,
3333
but allows a project's build dependencies to be encapsulated.
3434

3535
The last line selects the extension we want to use.
36-
As a start, we only select `resteasy-reactive-jackson`, which will also import `resteasy-reactive`.
36+
As a start, we only select `rest-jackson`, which will also import `rest`.
3737

3838
If you want your IDE to manage this new Maven project, you can declare it in the parent POM (`quarkus-super-heroes/pom.xml`) by adding this new module in the `<modules>` section:
3939

@@ -45,7 +45,7 @@ If you want your IDE to manage this new Maven project, you can declare it in the
4545
[TIP]
4646
.Prefer a Web UI?
4747
====
48-
Instead of the Maven command, you can use https://code.quarkus.io and select the `resteasy-reactive-jackson` extension.
48+
Instead of the Maven command, you can use https://code.quarkus.io and select the `rest-jackson` extension.
4949
====
5050

5151
== Directory Structure
@@ -165,7 +165,7 @@ In addition, you can see the `quarkus-maven-plugin` responsible for the packagin
165165
</project>
166166
----
167167

168-
If we focus on the dependencies section, you can see the extensions allowing the development of REST applications (resteasy-reactive and resteasy-reactive-jackson)
168+
If we focus on the dependencies section, you can see the extensions allowing the development of REST applications (`rest` and `rest-jackson`)
169169

170170
[source,xml,indent=0]
171171
----
@@ -176,11 +176,11 @@ If we focus on the dependencies section, you can see the extensions allowing the
176176
</dependency>
177177
<dependency>
178178
<groupId>io.quarkus</groupId>
179-
<artifactId>quarkus-resteasy-reactive</artifactId>
179+
<artifactId>quarkus-rest</artifactId>
180180
</dependency>
181181
<dependency>
182182
<groupId>io.quarkus</groupId>
183-
<artifactId>quarkus-resteasy-reactive-jackson</artifactId>
183+
<artifactId>quarkus-rest-jackson</artifactId>
184184
</dependency>
185185
<!-- ... -->
186186
</dependencies>
@@ -189,9 +189,9 @@ If we focus on the dependencies section, you can see the extensions allowing the
189189
* `quarkus-arc` is the dependency injection framework integrated into Quarkus.
190190
It's designed to perform build-time injections.
191191
We will see later why this is essential for Quarkus.
192-
* `resteasy-reactive` is the framework we will use to implement our REST API.
192+
* `quarkus-rest` is the framework we will use to implement our REST API.
193193
It uses JAX-RS annotations such as `@Path`, `@GET`...
194-
* `reasteasy-reactive-jackson` adds JSON object mapping capabilities to RESTEasy reactive.
194+
* `quarkus-rest-jackson` adds JSON object mapping capabilities to Quarkus REST.
195195

196196
== The Villain Resource
197197

@@ -212,7 +212,7 @@ public class VillainResource {
212212
@GET
213213
@Produces(MediaType.TEXT_PLAIN)
214214
public String hello() {
215-
return "Hello from RESTEasy Reactive";
215+
return "Hello from Quarkus REST";
216216
}
217217
}
218218
----
@@ -263,7 +263,7 @@ __ ____ __ _____ ___ __ ____ ______
263263
2022-11-15 14:05:29,414 INFO [io.quarkus] (Quarkus Main Thread) rest-villains 1.0.0-SNAPSHOT on JVM (powered by Quarkus {quarkus-version}) started in 1.093s. Listening on: http://localhost:8080
264264
265265
2022-11-15 14:05:29,423 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
266-
2022-11-15 14:05:29,423 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy-reactive, resteasy-reactive-jackson, smallrye-context-propagation, vertx]
266+
2022-11-15 14:05:29,423 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, rest, rest-jackson, smallrye-context-propagation, vertx]
267267
268268
Tests paused
269269
Press [r] to resume testing, [o] Toggle test output, [:] for the terminal, [h] for more options>
@@ -280,7 +280,7 @@ You should see the following
280280

281281
[source,shell]
282282
----
283-
Hello from RESTEasy Reactive
283+
Hello from Quarkus REST
284284
----
285285

286286
Alternatively, you can open http://localhost:8080/api/villains in your browser.
@@ -377,7 +377,7 @@ public class VillainResourceTest {
377377
.when().get("/api/villains")
378378
.then()
379379
.statusCode(200)
380-
.body(is("Hello from RESTEasy Reactive"));
380+
.body(is("Hello from Quarkus REST"));
381381
}
382382
383383
}
@@ -416,7 +416,7 @@ Unfortunately, this first run didn't end well:
416416
2022-11-15 14:13:17,925 ERROR [io.qua.test] (Test runner thread) Test VillainResourceTest#testHelloEndpoint() failed
417417
: java.lang.AssertionError: 1 expectation failed.
418418
Response body doesn't match expectation.
419-
Expected: is "Hello from RESTEasy Reactive"
419+
Expected: is "Hello from Quarkus REST"
420420
Actual: Hello Villain Resource
421421
422422
at io.restassured.internal.ValidatableResponseImpl.body(ValidatableResponseImpl.groovy)
@@ -426,7 +426,7 @@ Expected: is "Hello from RESTEasy Reactive"
426426
2022-11-15 14:13:17,927 ERROR [io.qua.test] (Test runner thread) >>>>>>>>>>>>>>>>>>>> Summary: <<<<<<<<<<<<<<<<<<<<
427427
io.quarkus.workshop.superheroes.villain.VillainResourceTest#testHelloEndpoint(VillainResourceTest.java:18) VillainResourceTest#testHelloEndpoint() 1 expectation failed.
428428
Response body doesn't match expectation.
429-
Expected: is "Hello from RESTEasy Reactive"
429+
Expected: is "Hello from Quarkus REST"
430430
Actual: Hello Villain Resource
431431
432432
2022-11-15 14:13:17,929 ERROR [io.qua.test] (Test runner thread) >>>>>>>>>>>>>>>>>>>> 1 TEST FAILED <<<<<<<<<<<<<<<<<<<<
@@ -435,7 +435,7 @@ Expected: is "Hello from RESTEasy Reactive"
435435
2022-11-15 14:13:18,155 ERROR [io.qua.test] (Test runner thread) Test VillainResourceTest#testHelloEndpoint() failed
436436
: java.lang.AssertionError: 1 expectation failed.
437437
Response body doesn't match expectation.
438-
Expected: is "Hello from RESTEasy Reactive"
438+
Expected: is "Hello from Quarkus REST"
439439
Actual: Hello Villain Resource
440440
441441
at io.restassured.internal.ValidatableResponseImpl.body(ValidatableResponseImpl.groovy)
@@ -445,7 +445,7 @@ Expected: is "Hello from RESTEasy Reactive"
445445
2022-11-15 14:13:18,156 ERROR [io.qua.test] (Test runner thread) >>>>>>>>>>>>>>>>>>>> Summary: <<<<<<<<<<<<<<<<<<<<
446446
io.quarkus.workshop.superheroes.villain.VillainResourceTest#testHelloEndpoint(VillainResourceTest.java:18) VillainResourceTest#testHelloEndpoint() 1 expectation failed.
447447
Response body doesn't match expectation.
448-
Expected: is "Hello from RESTEasy Reactive"
448+
Expected: is "Hello from Quarkus REST"
449449
Actual: Hello Villain Resource
450450
451451
2022-11-15 14:13:18,157 ERROR [io.qua.test] (Test runner thread) >>>>>>>>>>>>>>>>>>>> 1 TEST FAILED <<<<<<<<<<<<<<<<<<<<

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-rest/rest-orm.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ To add the required dependencies, just run the following command under the `supe
6262
----
6363
--
6464

65-
TIP: No need to add an extension for JSON, we already included `resteasy-reactive-jackson`.
65+
TIP: No need to add an extension for JSON, we already included `rest-jackson`.
6666

6767
This will add the following dependencies in the `pom.xml` file:
6868

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-rest/rest.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ include::{plantDir}/1-rest-physical-architecture.puml[]
2121
In the following sections, you learn:
2222

2323
* How to create a new Quarkus application
24-
* How to implement REST API using JAX-RS and the RESTEasy Reactive extensionfootnote:[RESTEasy Reactive support the reactive and imperative development models.]
24+
* How to implement REST API using JAX-RS and the Quarkus REST extension footnote:[Quarkus REST supports the reactive and imperative development models.]
2525
* How to compose your application using beans
2626
* How to access your database using Hibernate ORM with Panache
2727
* How to use transactions

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/optional-ai/ai.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ Open a terminal and run the following command under the `quarkus-workshop-super-
5858
-DprojectArtifactId=rest-narration \
5959
-DclassName="io.quarkus.workshop.superheroes.narration.NarrationResource" \
6060
-Dpath="api/narration" \
61-
-Dextensions="resteasy-reactive-jackson,quarkus-smallrye-openapi,quarkus-smallrye-fault-tolerance"
61+
-Dextensions="rest-jackson,quarkus-smallrye-openapi,quarkus-smallrye-fault-tolerance"
6262
----
6363
--
6464

6565
This microservice needs less dependencies than the previous ones:
6666

67-
* `resteasy-reactive-jackson` provides RESTEasy Reactive and the ability to map JSON objects,
67+
* `rest-jackson` provides Quarkus REST and the ability to map JSON objects,
6868
* `quarkus-smallrye-openapi` provides the OpenAPI descriptor support and the Swagger UI in the dev console,
6969
* `quarkus-smallrye-fault-tolerance` provides the MicroProfile Fault Tolerance dependency so we can fallback in case OpenAI/Azure OpenAI does not respond.
7070

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/optional-messaging/messaging-receiving-from-kafka.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Open a terminal and run the following command:
5555
-DprojectArtifactId=event-statistics \
5656
-DclassName="io.quarkus.workshop.superheroes.statistics.StatisticResource" \
5757
-Dpath="api/stats" \
58-
-Dextensions="kafka, resteasy-reactive-jackson, websockets"
58+
-Dextensions="kafka, rest-jackson, websockets"
5959
----
6060
--
6161

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/optional-quarkus-extension/quarkus-extension.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ And the version will be displayed:
247247
----
248248
10:16:58 INFO [io.qu.wo.su.ve.ru.VersionRecorder] (Quarkus Main Thread) Version: 1.0.0-SNAPSHOT
249249
...
250-
10:17:00 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [agroal, cdi, extension-version, hibernate-orm, hibernate-orm-panache, hibernate-validator, jdbc-postgresql, narayana-jta, resteasy-reactive, resteasy-reactive-jackson, smallrye-context-propagation, smallrye-health, smallrye-openapi, swagger-ui, vertx]
250+
10:17:00 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [agroal, cdi, extension-version, hibernate-orm, hibernate-orm-panache, hibernate-validator, jdbc-postgresql, narayana-jta, rest, rest-jackson, smallrye-context-propagation, smallrye-health, smallrye-openapi, swagger-ui, vertx]
251251
----
252252

253253
== Conclusion

quarkus-workshop-super-heroes/docs/src/docs/asciidoc/spine.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Quarkus Super-Heroes Workshop: {docdate} Quarkus {quarkus-version}
2-
Emmanuel Bernard; Clement Escoffier; Antonio Goncalves; Aurea Munoz Hernandez; Georgios Andrianakis; Holly Cummins
2+
Emmanuel Bernard; Clement Escoffier; Antonio Goncalves; Aurea Munoz Hernandez; Georgios Andrianakis; Holly Cummins; George Gastaldi
33
:doctype: book
44
:source-highlighter: coderay
55
:source-language: java

0 commit comments

Comments
 (0)