diff --git a/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/tooling/GradleApplicationModelBuilder.java b/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/tooling/GradleApplicationModelBuilder.java index 8027eb438f722..89561b107a9cd 100644 --- a/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/tooling/GradleApplicationModelBuilder.java +++ b/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/tooling/GradleApplicationModelBuilder.java @@ -156,11 +156,12 @@ public static ResolvedDependency getProjectArtifact(Project project, LaunchMode private static void collectDestinationDirs(Collection sources, final PathList.Builder paths) { for (SourceDir src : sources) { if (!Files.exists(src.getOutputDir())) { - return; + continue; } + final Path path = src.getOutputDir(); if (paths.contains(path)) { - return; + continue; } paths.add(path); }