@Test public void testGetTransitiveDependencies() { Dependency dependency = new Dependency(datastore, "compile"); DependencyGraph graph = dependencyGraphBuilder.buildMavenDependencyGraph(dependency); List<DependencyPath> list = graph.list(); Assert.assertTrue(list.size() > 10); int guavaCount = countArtifactId(graph, "guava"); Assert.assertEquals(1, guavaCount); }
public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); }
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } }
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } DependencyGraphBuilder();  DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls); }
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } DependencyGraphBuilder();  DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls); DependencyGraph buildFullDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(Artifact artifact); DependencyGraph buildMavenDependencyGraph(Dependency dependency); }
DependencyGraphBuilder { public DependencyGraph buildMavenDependencyGraph(Dependency dependency) { ImmutableList<DependencyNode> roots = ImmutableList.of(new DefaultDependencyNode(dependency)); return buildDependencyGraph(roots, RepositoryUtility.newSessionForMaven(system)); } DependencyGraphBuilder();  DependencyGraphBuilder(Iterable<String> mavenRepositoryUrls); DependencyGraph buildFullDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(List<Artifact> artifacts); DependencyGraph buildVerboseDependencyGraph(Artifact artifact); DependencyGraph buildMavenDependencyGraph(Dependency dependency);  }