Set<ComponentIdentifier> seen, Set<ResolvedComponentResult> dependencies) { for (DependencyResult d : root.getDependencies()) { if (!(d instanceof ResolvedDependencyResult)) { throw new GradleException("Unresolved dependency found for " + d.toString());
Set<ComponentIdentifier> seen, Set<ResolvedComponentResult> dependencies) { for (DependencyResult d : root.getDependencies()) { if (!(d instanceof ResolvedDependencyResult)) { throw new GradleException("Unresolved dependency found for " + d.toString());
private Set<DependencyCandidate> determineIncludedComponents(ResolvedComponentResult root, Map<String, Exclusions> pomExclusionsById) { LinkedList<Node> queue = new LinkedList<Node>(); queue.add(new Node(root, getId(root), new HashSet<String>())); Set<ResolvedComponentResult> seen = new HashSet<ResolvedComponentResult>(); Set<DependencyCandidate> includedComponents = new HashSet<DependencyCandidate>(); while (!queue.isEmpty()) { Node node = queue.remove(); includedComponents.add(new DependencyCandidate(node.component.getModuleVersion() .getGroup(), node.component.getModuleVersion().getName())); for (DependencyResult dependency : node.component.getDependencies()) { if (dependency instanceof ResolvedDependencyResult) { handleResolvedDependency((ResolvedDependencyResult) dependency, node, pomExclusionsById, queue, seen); } else if (dependency instanceof UnresolvedDependencyResult) { handleUnresolvedDependency((UnresolvedDependencyResult) dependency, node, includedComponents); } } } return includedComponents; }
.getResolutionResult().getRoot().getDependencies();
.getResolutionResult().getRoot().getDependencies(); .getResolutionResult().getRoot().getDependencies();
List<JarInfo> nestedJars = Lists.newArrayList(); Set<? extends DependencyResult> dependencies = resolvedComponentResult.getDependencies(); for (DependencyResult dependencyResult : dependencies) { if (dependencyResult instanceof ResolvedDependencyResult) {
Set<? extends DependencyResult> dependencies = resolvedComponentResult.getDependencies(); List<DependencyNode> transitiveDependencies = Lists.newArrayListWithExpectedSize(dependencies.size());