Skip to content

Commit

Permalink
Use UpdateDependencyVersionOperation first to update Quarkus version
Browse files Browse the repository at this point in the history
It is important to try that first as that recipe updates the OpenRewrite
model, and thus the BOM, for the following recipes.
This is important for the recipe syncing the Hibernate ORM modelgen
annotation processor with the version coming from the BOM as we want to
sync it with the updated version.
  • Loading branch information
gsmet committed Jan 24, 2024
1 parent 71f3200 commit f2fda62
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ public static FetchResult createRecipe(MessageWriter log, Path target, MavenArti
}
switch (request.buildTool) {
case MAVEN:
recipe.addOperation(new UpdatePropertyOperation("quarkus.platform.version", request.targetVersion))
recipe.addOperation(
new UpdateDependencyVersionOperation("io.quarkus.platform", "quarkus-bom", request.targetVersion))
.addOperation(new UpdateDependencyVersionOperation("io.quarkus", "quarkus-bom", request.targetVersion))
.addOperation(new UpdateDependencyVersionOperation("io.quarkus", "quarkus-universe-bom",
request.targetVersion))
.addOperation(new UpdatePropertyOperation("quarkus.platform.version", request.targetVersion))
.addOperation(new UpdatePropertyOperation("quarkus.version", request.targetVersion))
.addOperation(new UpdatePropertyOperation("quarkus-plugin.version", request.targetVersion));
if (request.kotlinVersion != null) {
Expand Down

0 comments on commit f2fda62

Please sign in to comment.