Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
aloubyansky committed Oct 28, 2024
1 parent e04ebf3 commit 02dcee6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -134,7 +140,8 @@ private void logTree(final Consumer<String> 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);
Expand Down

0 comments on commit 02dcee6

Please sign in to comment.