public class DependencyTreeFormatter extends Object
| Constructor and Description |
|---|
DependencyTreeFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ListMultimap<DependencyPath,DependencyPath> |
buildDependencyPathTree(Collection<DependencyPath> dependencyPaths)
Builds ListMultimap that represents a Maven dependency tree of parent-children relationship.
|
public static com.google.common.collect.ListMultimap<DependencyPath,DependencyPath> buildDependencyPathTree(Collection<DependencyPath> dependencyPaths)
listMultimap.values().dependencyPaths - dependency path instances without assuming any orderDependencyPath representing the root
Maven artifact is available via new DependencyPath(rootArtifact) where rootArtifact is the root of each dependencyPaths. The root node's parent is the
node itself.Copyright © 2018–2021 Google LLC.. All rights reserved.