public final class ShadeParser extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,Set<Dependency>> |
parseShadeOutput(Path buildOutput)
Parses the output of a Maven build where
shade:shade was used, and returns a set of
bundled dependencies for each module. |
public static Map<String,Set<Dependency>> parseShadeOutput(Path buildOutput) throws IOException
shade:shade
was used, and returns a set of
bundled dependencies for each module.
The returned dependencies will NEVER contain the scope or optional flag.
This method only considers the shade-paimon
and shade-dist
executions,
because all artifacts we produce that are either published or referenced are created by these
executions. In other words, all artifacts from other executions are only used internally by
the module that created them.
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.