You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: quarkus-workshop-super-heroes/docs/src/docs/asciidoc/core-introduction/introduction-installing-graalvm.adoc
+3-10
Original file line number
Diff line number
Diff line change
@@ -103,15 +103,6 @@ endif::use-mac[]
103
103
104
104
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`).
105
105
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.
115
106
116
107
ifdef::use-mac[]
117
108
[NOTE]
@@ -141,6 +132,8 @@ You should get something like:
141
132
142
133
[source,shell]
143
134
----
144
-
GraalVM 22.3.1 Java 17 CE (Java Version 17.0.6+10-jvmci-22.3-b13)
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`).
29
29
This is the recommended way to develop REST applications with Quarkus even if we use the imperative programming model in the Villain microservice.
30
30
====
31
31
32
32
Remember that `mvnw` is the maven wrapper. It behaves like `mvn`,
33
33
but allows a project's build dependencies to be encapsulated.
34
34
35
35
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`.
37
37
38
38
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:
39
39
@@ -45,7 +45,7 @@ If you want your IDE to manage this new Maven project, you can declare it in the
45
45
[TIP]
46
46
.Prefer a Web UI?
47
47
====
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.
49
49
====
50
50
51
51
== Directory Structure
@@ -165,7 +165,7 @@ In addition, you can see the `quarkus-maven-plugin` responsible for the packagin
165
165
</project>
166
166
----
167
167
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`)
169
169
170
170
[source,xml,indent=0]
171
171
----
@@ -176,11 +176,11 @@ If we focus on the dependencies section, you can see the extensions allowing the
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
264
264
265
265
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]
267
267
268
268
Tests paused
269
269
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
280
280
281
281
[source,shell]
282
282
----
283
-
Hello from RESTEasy Reactive
283
+
Hello from Quarkus REST
284
284
----
285
285
286
286
Alternatively, you can open http://localhost:8080/api/villains in your browser.
@@ -377,7 +377,7 @@ public class VillainResourceTest {
377
377
.when().get("/api/villains")
378
378
.then()
379
379
.statusCode(200)
380
-
.body(is("Hello from RESTEasy Reactive"));
380
+
.body(is("Hello from Quarkus REST"));
381
381
}
382
382
383
383
}
@@ -416,7 +416,7 @@ Unfortunately, this first run didn't end well:
416
416
2022-11-15 14:13:17,925 ERROR [io.qua.test] (Test runner thread) Test VillainResourceTest#testHelloEndpoint() failed
417
417
: java.lang.AssertionError: 1 expectation failed.
418
418
Response body doesn't match expectation.
419
-
Expected: is "Hello from RESTEasy Reactive"
419
+
Expected: is "Hello from Quarkus REST"
420
420
Actual: Hello Villain Resource
421
421
422
422
at io.restassured.internal.ValidatableResponseImpl.body(ValidatableResponseImpl.groovy)
@@ -426,7 +426,7 @@ Expected: is "Hello from RESTEasy Reactive"
* 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.]
25
25
* How to compose your application using beans
26
26
* How to access your database using Hibernate ORM with Panache
This microservice needs less dependencies than the previous ones:
66
66
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,
68
68
* `quarkus-smallrye-openapi` provides the OpenAPI descriptor support and the Swagger UI in the dev console,
69
69
* `quarkus-smallrye-fault-tolerance` provides the MicroProfile Fault Tolerance dependency so we can fallback in case OpenAI/Azure OpenAI does not respond.
Copy file name to clipboardexpand all lines: quarkus-workshop-super-heroes/docs/src/docs/asciidoc/optional-messaging/messaging-receiving-from-kafka.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ Open a terminal and run the following command:
0 commit comments