From 2f453f4e0d4341c1953cd325fe3347f7cfb08ac7 Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Tue, 24 Oct 2023 17:12:18 +0200 Subject: [PATCH] Fix update on extensions --- .../commands/handlers/ProjectInfoCommandHandler.java | 2 +- .../commands/handlers/UpdateProjectCommandHandler.java | 2 +- .../quarkus/devtools/project/update/ProjectUpdateInfos.java | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/commands/handlers/ProjectInfoCommandHandler.java b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/commands/handlers/ProjectInfoCommandHandler.java index cdd44b0d0569f..81ac82f9a9bd2 100644 --- a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/commands/handlers/ProjectInfoCommandHandler.java +++ b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/commands/handlers/ProjectInfoCommandHandler.java @@ -123,7 +123,7 @@ protected static boolean logState(ProjectState projectState, boolean perModule, if (projectState.getExtensions().isEmpty()) { log.info(""); - log.info("No Quarkus extensions found among the project dependencies"); + log.info("No Quarkus extensions were found among the project dependencies"); return recommendationsAvailable; } diff --git a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/commands/handlers/UpdateProjectCommandHandler.java b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/commands/handlers/UpdateProjectCommandHandler.java index aa83feb1ba29a..cd4ca305aceb3 100644 --- a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/commands/handlers/UpdateProjectCommandHandler.java +++ b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/commands/handlers/UpdateProjectCommandHandler.java @@ -156,7 +156,7 @@ private static void logUpdates(QuarkusProject project, ProjectState currentState return; } if (currentState.getExtensions().isEmpty()) { - log.info("Quarkus extension were not found among the project dependencies"); + log.info("No Quarkus extensions were found among the project dependencies"); return; } if (currentState == recommendedState) { diff --git a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ProjectUpdateInfos.java b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ProjectUpdateInfos.java index 02406cc8e084e..5b0de3be5e4d6 100644 --- a/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ProjectUpdateInfos.java +++ b/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/update/ProjectUpdateInfos.java @@ -86,12 +86,6 @@ private static void checkProjectState(ProjectState currentState, ProjectState re if (currentState.getPlatformBoms().isEmpty()) { throw new IllegalStateException("The project does not import any Quarkus platform BOM"); } - if (currentState.getExtensions().isEmpty()) { - throw new IllegalStateException("Quarkus extension were not found among the project dependencies"); - } - if (currentState == recommendedState) { - throw new IllegalStateException("The project is up-to-date"); - } } public static ProjectState resolveRecommendedState(ProjectState currentState, ExtensionCatalog recommendedCatalog,