public final class DependencyGraphBuilder extends Object
| Constructor and Description |
|---|
DependencyGraphBuilder() |
DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableMap<String,String> |
detectOsProperties() |
DependencyGraphResult |
getCompleteDependencies(org.eclipse.aether.artifact.Artifact artifact)
Finds the full compile time, transitive dependency graph including duplicates and conflicting
versions.
|
List<org.eclipse.aether.artifact.Artifact> |
getDirectDependencies(org.eclipse.aether.artifact.Artifact artifact)
Returns the non-transitive compile time dependencies of an artifact.
|
DependencyGraphResult |
getStaticLinkageCheckDependencyGraph(List<org.eclipse.aether.artifact.Artifact> artifacts)
Finds the full compile time, transitive dependency graph including duplicates, conflicting
versions, and dependencies with 'provided' scope.
|
DependencyGraphResult |
getTransitiveDependencies(org.eclipse.aether.artifact.Artifact artifact)
Finds the complete transitive dependency graph as seen by Maven.
|
public DependencyGraphBuilder()
public DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls)
mavenRepositoryUrls - Maven repository URLs to search for dependenciesIllegalArgumentException - if a URL is malformed or does not have an allowed schemepublic static com.google.common.collect.ImmutableMap<String,String> detectOsProperties()
public List<org.eclipse.aether.artifact.Artifact> getDirectDependencies(org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.RepositoryException
org.eclipse.aether.RepositoryExceptionpublic DependencyGraphResult getStaticLinkageCheckDependencyGraph(List<org.eclipse.aether.artifact.Artifact> artifacts) throws org.eclipse.aether.RepositoryException
artifacts - Maven artifacts to retrieve their dependenciesorg.eclipse.aether.RepositoryException - when there is a problem resolving or collecting dependenciespublic DependencyGraphResult getCompleteDependencies(org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.RepositoryException
org.eclipse.aether.RepositoryExceptionpublic DependencyGraphResult getTransitiveDependencies(org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.RepositoryException
org.eclipse.aether.RepositoryExceptionCopyright © 2018–2020 Google LLC.. All rights reserved.