diff --git a/devtools/maven/src/main/java/io/quarkus/maven/AbstractDeploymentMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/AbstractDeploymentMojo.java index c37ea86a22033..43fe9fd921095 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/AbstractDeploymentMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/AbstractDeploymentMojo.java @@ -56,13 +56,13 @@ protected List forcedDependencies(LaunchMode mode) { List dependencies = new ArrayList<>(); MavenProject project = mavenProject(); Deployer deployer = getDeployer(); - deployer.getExtensionArtifact(project).ifPresent(d -> dependencies.add(d)); + deployer.getExtensionArtifact(project).ifPresent(dependencies::add); if (this.imageBuild || this.imageBuilder != null) { Set projectBuilders = ImageBuilder.getProjectBuilder(project).stream().map(ImageBuilder::valueOf) .collect(Collectors.toSet()); Optional imageBuilder = ImageBuilder.getBuilder(this.imageBuilder, projectBuilders); imageBuilder.filter(b -> !projectBuilders.contains(b)).flatMap(b -> b.getExtensionArtifact(project)) - .ifPresent(d -> dependencies.add(d)); + .ifPresent(dependencies::add); } return dependencies; }