public final class ClassPathBuilder extends Object
ClassPathResult that holds class path (a list of ClassPathEntry)
through a dependency tree of Maven artifacts.| Constructor and Description |
|---|
ClassPathBuilder() |
ClassPathBuilder(DependencyGraphBuilder dependencyGraphBuilder) |
| Modifier and Type | Method and Description |
|---|---|
ClassPathResult |
resolve(List<org.eclipse.aether.artifact.Artifact> artifacts,
boolean full)
Builds a classpath from the transitive dependency graph from
artifacts. |
public ClassPathBuilder()
public ClassPathBuilder(DependencyGraphBuilder dependencyGraphBuilder)
public ClassPathResult resolve(List<org.eclipse.aether.artifact.Artifact> artifacts, boolean full)
artifacts. When there are
multiple versions of an artifact in the dependency tree, the closest to the root in
breadth-first order is picked up. This "pick closest" strategy follows Maven's dependency
mediation.artifacts - the first artifacts that appear in the classpath, in orderfull - if true all optional dependencies and their transitive dependencies are included.
If false, optional dependencies are not included.Copyright © 2018–2021 Google LLC.. All rights reserved.