From 25b0c3f7bb9a5c0250f29a0895d45f43371b3ee4 Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Mon, 9 Dec 2024 14:32:15 +0100 Subject: [PATCH] chore: fix dependencies incompatibilities log message (#20632) (#20653) Co-authored-by: Marco Collovati --- .../src/main/java/com/vaadin/flow/plugin/maven/Reflector.java | 3 ++- .../src/main/java/com/vaadin/flow/plugin/maven/Reflector.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flow-plugins/flow-dev-bundle-plugin/src/main/java/com/vaadin/flow/plugin/maven/Reflector.java b/flow-plugins/flow-dev-bundle-plugin/src/main/java/com/vaadin/flow/plugin/maven/Reflector.java index 66d956c2977..ce5585fbacb 100644 --- a/flow-plugins/flow-dev-bundle-plugin/src/main/java/com/vaadin/flow/plugin/maven/Reflector.java +++ b/flow-plugins/flow-dev-bundle-plugin/src/main/java/com/vaadin/flow/plugin/maven/Reflector.java @@ -220,7 +220,8 @@ public static Reflector of(MavenProject project, } void logIncompatibilities(Consumer logger) { - if (dependenciesIncompatibility != null) { + if (dependenciesIncompatibility != null + && !dependenciesIncompatibility.isEmpty()) { logger.accept( """ Found dependencies defined with different versions in project and Vaadin maven plugin. diff --git a/flow-plugins/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/Reflector.java b/flow-plugins/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/Reflector.java index e5e2e67ca41..6ab43998c70 100644 --- a/flow-plugins/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/Reflector.java +++ b/flow-plugins/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/Reflector.java @@ -220,7 +220,8 @@ public static Reflector of(MavenProject project, } void logIncompatibilities(Consumer logger) { - if (dependenciesIncompatibility != null) { + if (dependenciesIncompatibility != null + && !dependenciesIncompatibility.isEmpty()) { logger.accept( """ Found dependencies defined with different versions in project and Vaadin maven plugin.