Skip to content

Commit 0e794c7

Browse files
authored
Merge pull request #1963 from gsmet/update-martin-blog
Update Quarkus 3 upgrade blog
2 parents cc0c6a1 + 3db5bf1 commit 0e794c7

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

_posts/2023-05-20-quarkus-3-upgrade.adoc

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,20 @@ Furthermore, if there's an explicit Jakarta API dependency in the project, you'l
2020
Of course, you can migrate the application manually.
2121
But since Quarkus embraces the developer joy there is the Quarkus Update Tool to the rescue!
2222

23+
[TIP]
24+
====
25+
This blog post was written just after the Quarkus 3.0 release.
26+
Things have evolved a bit since then.
27+
28+
For more information about how to update to the latest Quarkus, have a look at the https://quarkus.io/guides/update-quarkus[dedicated guide].
29+
30+
You can also find all the migration guides in https://github.com/quarkusio/quarkus/wiki/Migration-Guides[our wiki].
31+
====
32+
2333
== Quarkus Update Tool - TL;DR
2434

25-
. Install the https://quarkus.io/guides/cli-tooling[Quarkus CLI] or make sure a 3+ version is installed
26-
. Run `quarkus update --stream=3.0`
35+
. Install the https://quarkus.io/guides/cli-tooling[Quarkus CLI] or make sure the latest version is installed
36+
. Run `quarkus update`
2737
. Check the changes made by the tool
2838
. Profit!
2939

@@ -52,27 +62,27 @@ To run the update:
5262
[source,role="primary asciidoc-tabs-target-sync-cli"]
5363
.CLI
5464
----
55-
quarkus update --stream=3.0
65+
quarkus update
5666
----
5767

5868
[source,role="secondary asciidoc-tabs-target-sync-maven"]
5969
.Maven
6070
----
61-
./mvnw io.quarkus.platform:quarkus-maven-plugin:3.0.3.Final:update -N -Dstream=3.0
71+
./mvnw io.quarkus.platform:quarkus-maven-plugin:3.9.3.Final:update -N
6272
----
6373

6474
[source,role="secondary asciidoc-tabs-target-sync-gradle"]
6575
.Gradle
6676
----
67-
./gradlew -PquarkusPluginVersion=3.0.3.Final quarkusUpdate --stream=3.0
77+
./gradlew -PquarkusPluginVersion=3.9.3.Final quarkusUpdate
6878
----
6979

7080
IMPORTANT: If using https://quarkus.io/guides/cli-tooling[Quarkus CLI] then always make sure the latest version is used. The `quarkus version` command should output version 3+.
7181

7282
Keep in mind that there is no dry-run mode.
7383
In other words, once you trigger the update, the changes will be immediately written to the file system.
7484
However, you can leverage the source code management tool to see the transformations applied.
75-
For example, if using Git then run the update tool and execute the `git diff` command afterwards to see the changes.
85+
For example, if using Git then run the update tool and execute the `git diff` command afterwards to see the changes.
7686
And if something went wrong then just use `git checkout .` to revert the changes.
7787

7888
TIP: If your application depends on Hibernate ORM, the dedicated https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.0:-Hibernate-ORM-5-to-6-migration[Hibernate ORM 5 to 6] migration guide will come in handy.

0 commit comments

Comments
 (0)