プロジェクトをQuarkusの最新バージョンに更新
experimentalQuarkus プロジェクトを最新バージョンの {プロジェクト名} に更新またはアップグレードするには、updateコマンドを使用します。
The update command primarily employs OpenRewrite recipes to automate updates for most project dependencies, source code, and documentation.
|
The update command automates only a subset of the migration. Always review the Migration Guides for your target version to identify any additional steps that require manual changes. |
更新後、期待された更新がない場合は、以下の理由を検討して下さい:
-
レシピには、あなたのプロジェクトの特定のアイテムが含まれていないかもしれません。
-
Quarkus の最新バージョンと互換性のないエクステンションを使用している可能性があります。
前提条件
このガイドを完成させるには、以下が必要です:
-
ざっと 30 minutes
-
IDE
-
JDK 17+がインストールされ、
JAVA_HOMEが適切に設定されていること -
Apache Maven 3.9.16
-
使用したい場合は、 Quarkus CLI
-
ネイティブ実行可能ファイルをビルドしたい場合、MandrelまたはGraalVM(あるいはネイティブなコンテナビルドを使用する場合はDocker)をインストールし、 適切に設定していること
-
Quarkus バージョン2.13以降に基づくプロジェクト。
手順
-
バージョン管理システムを使って、プロジェクトの作業ブランチを作成します。
-
次のステップでQuarkus CLIを使用するには、 Quarkus CLIの最新バージョンをインストール します。
quarkus -vを使用してバージョン番号を確認します。 -
プロジェクト・ディレクトリに移動し、プロジェクトを最新のストリームに更新します:
-
潜在的な指示について更新コマンドの出力を分析し、必要に応じて提案されたタスクを実行します。
-
diffツールを使って、すべての変更を検査します。
-
Review the Migration Guides for your target version and apply any additional steps not covered by the update command.
-
実稼働環境にデプロイする前に、プロジェクトがエラーなくビルドされ、すべてのテストがパスし、アプリケーションが要求どおりに機能することを確認してください。
Update recipes
The OpenRewrite recipes used by the update command are maintained in the Quarkus Updates repository. If you find that a recipe is missing or incorrect, you can contribute improvements there. Refer to the README.md and the CONTRIBUTING.md guide for detailed instructions on how to write and test recipes.