diff --git a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ExtensionUpdateInfo.java b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ExtensionUpdateInfo.java index 82ae78192edf3..7e8e48c1ac190 100644 --- a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ExtensionUpdateInfo.java +++ b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ExtensionUpdateInfo.java @@ -93,4 +93,8 @@ public boolean isSimpleVersionUpdate() { return VersionUpdateType.UPDATE_VERSION.equals(getVersionUpdateType()) || VersionUpdateType.RECOMMEND_PLATFORM_MANAGED.equals(getVersionUpdateType()); } + + public boolean isVersionUpdate() { + return !VersionUpdateType.ADD_VERSION.equals(getVersionUpdateType()); + } } diff --git a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ProjectExtensionsUpdateInfo.java b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ProjectExtensionsUpdateInfo.java index 77ab4634aaaf3..cef2daf98569f 100644 --- a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ProjectExtensionsUpdateInfo.java +++ b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ProjectExtensionsUpdateInfo.java @@ -42,6 +42,10 @@ public List getSimpleVersionUpdates() { return streamExtensions().filter(ExtensionUpdateInfo::isSimpleVersionUpdate).collect(Collectors.toList()); } + public List getVersionUpdates() { + return streamExtensions().filter(ExtensionUpdateInfo::isVersionUpdate).collect(Collectors.toList()); + } + public boolean shouldUpdateExtensions() { return streamExtensions().anyMatch(ExtensionUpdateInfo::shouldUpdateExtension); } diff --git a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/rewrite/QuarkusUpdates.java b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/rewrite/QuarkusUpdates.java index efda3dc62d0b0..7d6e8f3960bfb 100644 --- a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/rewrite/QuarkusUpdates.java +++ b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/rewrite/QuarkusUpdates.java @@ -30,7 +30,7 @@ public static FetchResult createRecipe(MessageWriter log, Path target, MavenArti request.currentVersion, request.targetVersion, request.projectExtensionsUpdateInfo - .getSimpleVersionUpdates()); + .getVersionUpdates()); QuarkusUpdateRecipe recipe = new QuarkusUpdateRecipe() .buildTool(request.buildTool); if (request.updateJavaVersion.isPresent()) {