diff --git a/devtools/maven/src/main/java/io/quarkus/maven/DependencyTreeMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/DependencyTreeMojo.java index 461e619c65fd4a..7de487b87c0deb 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/DependencyTreeMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/DependencyTreeMojo.java @@ -85,6 +85,12 @@ public class DependencyTreeMojo extends AbstractMojo { @Parameter(property = "appendOutput", required = false, defaultValue = "false") boolean appendOutput; + /** + * Whether to log only the runtime dependencies of the Quarkus application + */ + @Parameter(property = "runtimeOnly") + boolean runtimeOnly; + protected MavenArtifactResolver resolver; @Override @@ -134,7 +140,8 @@ private void logTree(final Consumer log) throws MojoExecutionException { project.getVersion()); final BootstrapAppModelResolver modelResolver; try { - modelResolver = new BootstrapAppModelResolver(resolver()); + modelResolver = new BootstrapAppModelResolver(resolver()) + .setRuntimeModelOnly(runtimeOnly); if (mode != null) { if (mode.equalsIgnoreCase("test")) { modelResolver.setTest(true);