org.gradle.api.artifacts.result.UnresolvedDependencyResult Java Examples
The following examples show how to use
org.gradle.api.artifacts.result.UnresolvedDependencyResult.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LinkageCheckTask.java From cloud-opensource-java with Apache License 2.0 | 5 votes |
private void recordDependencyPaths( ImmutableListMultimap.Builder<String, String> output, ArrayDeque<ResolvedComponentResult> stack, ImmutableSet<String> targetCoordinates) { ResolvedComponentResult item = stack.getLast(); ModuleVersionIdentifier identifier = item.getModuleVersion(); String coordinates = String.format( "%s:%s:%s", identifier.getGroup(), identifier.getName(), identifier.getVersion()); if (targetCoordinates.contains(coordinates)) { String dependencyPath = stack.stream().map(this::formatComponentResult).collect(Collectors.joining(" / ")); output.put(coordinates, dependencyPath); } for (DependencyResult dependencyResult : item.getDependencies()) { if (dependencyResult instanceof ResolvedDependencyResult) { ResolvedDependencyResult resolvedDependencyResult = (ResolvedDependencyResult) dependencyResult; ResolvedComponentResult child = resolvedDependencyResult.getSelected(); stack.add(child); recordDependencyPaths(output, stack, targetCoordinates); } else if (dependencyResult instanceof UnresolvedDependencyResult) { UnresolvedDependencyResult unresolvedResult = (UnresolvedDependencyResult) dependencyResult; getLogger() .error( "Could not resolve dependency: " + unresolvedResult.getAttempted().getDisplayName()); } else { throw new IllegalStateException("Unexpected dependency result type: " + dependencyResult); } } stack.removeLast(); }
Example #2
Source File: CachingDependencyResultFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public UnresolvedDependencyResult createUnresolvedDependency(ComponentSelector requested, ResolvedComponentResult from, ComponentSelectionReason reason, ModuleVersionResolveException failure) { List<Object> key = asList(requested, from); if (!unresolvedDependencies.containsKey(key)) { unresolvedDependencies.put(key, new DefaultUnresolvedDependencyResult(requested, reason, from, failure)); } return unresolvedDependencies.get(key); }
Example #3
Source File: RenderableModuleResult.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public Set<RenderableDependency> getChildren() { Set<RenderableDependency> out = new LinkedHashSet<RenderableDependency>(); for (DependencyResult d : module.getDependencies()) { if (d instanceof UnresolvedDependencyResult) { out.add(new RenderableUnresolvedDependencyResult((UnresolvedDependencyResult) d)); } else { out.add(new RenderableDependencyResult((ResolvedDependencyResult) d)); } } return out; }
Example #4
Source File: RenderableDependencyResult.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public Set<RenderableDependency> getChildren() { Set<RenderableDependency> out = new LinkedHashSet<RenderableDependency>(); for (DependencyResult d : dependency.getSelected().getDependencies()) { if (d instanceof UnresolvedDependencyResult) { out.add(new RenderableUnresolvedDependencyResult((UnresolvedDependencyResult) d)); } else { out.add(new RenderableDependencyResult((ResolvedDependencyResult) d)); } } return out; }
Example #5
Source File: RenderableModuleResult.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public Set<RenderableDependency> getChildren() { Set<RenderableDependency> out = new LinkedHashSet<RenderableDependency>(); for (DependencyResult d : module.getDependencies()) { if (d instanceof UnresolvedDependencyResult) { out.add(new RenderableUnresolvedDependencyResult((UnresolvedDependencyResult) d)); } else { out.add(new RenderableDependencyResult((ResolvedDependencyResult) d)); } } return out; }
Example #6
Source File: RenderableDependencyResult.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public Set<RenderableDependency> getChildren() { Set<RenderableDependency> out = new LinkedHashSet<RenderableDependency>(); for (DependencyResult d : dependency.getSelected().getDependencies()) { if (d instanceof UnresolvedDependencyResult) { out.add(new RenderableUnresolvedDependencyResult((UnresolvedDependencyResult) d)); } else { out.add(new RenderableDependencyResult((ResolvedDependencyResult) d)); } } return out; }
Example #7
Source File: CachingDependencyResultFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public UnresolvedDependencyResult createUnresolvedDependency(ComponentSelector requested, ResolvedComponentResult from, ComponentSelectionReason reason, ModuleVersionResolveException failure) { List<Object> key = asList(requested, from); if (!unresolvedDependencies.containsKey(key)) { unresolvedDependencies.put(key, new DefaultUnresolvedDependencyResult(requested, reason, from, failure)); } return unresolvedDependencies.get(key); }
Example #8
Source File: CachingDependencyResultFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public UnresolvedDependencyResult createUnresolvedDependency(ComponentSelector requested, ResolvedComponentResult from, ComponentSelectionReason reason, ModuleVersionResolveException failure) { List<Object> key = asList(requested, from); if (!unresolvedDependencies.containsKey(key)) { unresolvedDependencies.put(key, new DefaultUnresolvedDependencyResult(requested, reason, from, failure)); } return unresolvedDependencies.get(key); }
Example #9
Source File: CachingDependencyResultFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public UnresolvedDependencyResult createUnresolvedDependency(ComponentSelector requested, ResolvedComponentResult from, ComponentSelectionReason reason, ModuleVersionResolveException failure) { List<Object> key = asList(requested, from); if (!unresolvedDependencies.containsKey(key)) { unresolvedDependencies.put(key, new DefaultUnresolvedDependencyResult(requested, reason, from, failure)); } return unresolvedDependencies.get(key); }
Example #10
Source File: RenderableModuleResult.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public Set<RenderableDependency> getChildren() { Set<RenderableDependency> out = new LinkedHashSet<RenderableDependency>(); for (DependencyResult d : module.getDependencies()) { if (d instanceof UnresolvedDependencyResult) { out.add(new RenderableUnresolvedDependencyResult((UnresolvedDependencyResult) d)); } else { out.add(new RenderableDependencyResult((ResolvedDependencyResult) d)); } } return out; }
Example #11
Source File: RenderableDependencyResult.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public Set<RenderableDependency> getChildren() { Set<RenderableDependency> out = new LinkedHashSet<RenderableDependency>(); for (DependencyResult d : dependency.getSelected().getDependencies()) { if (d instanceof UnresolvedDependencyResult) { out.add(new RenderableUnresolvedDependencyResult((UnresolvedDependencyResult) d)); } else { out.add(new RenderableDependencyResult((ResolvedDependencyResult) d)); } } return out; }
Example #12
Source File: RenderableModuleResult.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public Set<RenderableDependency> getChildren() { Set<RenderableDependency> out = new LinkedHashSet<RenderableDependency>(); for (DependencyResult d : module.getDependencies()) { if (d instanceof UnresolvedDependencyResult) { out.add(new RenderableUnresolvedDependencyResult((UnresolvedDependencyResult) d)); } else { out.add(new RenderableDependencyResult((ResolvedDependencyResult) d)); } } return out; }
Example #13
Source File: RenderableDependencyResult.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public Set<RenderableDependency> getChildren() { Set<RenderableDependency> out = new LinkedHashSet<RenderableDependency>(); for (DependencyResult d : dependency.getSelected().getDependencies()) { if (d instanceof UnresolvedDependencyResult) { out.add(new RenderableUnresolvedDependencyResult((UnresolvedDependencyResult) d)); } else { out.add(new RenderableDependencyResult((ResolvedDependencyResult) d)); } } return out; }
Example #14
Source File: UnresolvedDependencyEdge.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public UnresolvedDependencyEdge(UnresolvedDependencyResult dependency) { this.dependency = dependency; ModuleComponentSelector attempted = (ModuleComponentSelector)dependency.getAttempted(); actual = DefaultModuleComponentIdentifier.newId(attempted.getGroup(), attempted.getModule(), attempted.getVersion()); }
Example #15
Source File: RenderableUnresolvedDependencyResult.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public RenderableUnresolvedDependencyResult(UnresolvedDependencyResult dependency) { this.dependency = dependency; }
Example #16
Source File: UnresolvedDependencyEdge.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public UnresolvedDependencyEdge(UnresolvedDependencyResult dependency) { this.dependency = dependency; ModuleComponentSelector attempted = (ModuleComponentSelector)dependency.getAttempted(); actual = DefaultModuleComponentIdentifier.newId(attempted.getGroup(), attempted.getModule(), attempted.getVersion()); }
Example #17
Source File: RenderableUnresolvedDependencyResult.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public RenderableUnresolvedDependencyResult(UnresolvedDependencyResult dependency) { this.dependency = dependency; }
Example #18
Source File: UnresolvedDependencyEdge.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public UnresolvedDependencyEdge(UnresolvedDependencyResult dependency) { this.dependency = dependency; ModuleComponentSelector attempted = (ModuleComponentSelector)dependency.getAttempted(); actual = DefaultModuleComponentIdentifier.newId(attempted.getGroup(), attempted.getModule(), attempted.getVersion()); }
Example #19
Source File: RenderableUnresolvedDependencyResult.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public RenderableUnresolvedDependencyResult(UnresolvedDependencyResult dependency) { this.dependency = dependency; }
Example #20
Source File: RenderableUnresolvedDependencyResult.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public RenderableUnresolvedDependencyResult(UnresolvedDependencyResult dependency) { this.dependency = dependency; }
Example #21
Source File: UnresolvedDependencyEdge.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public UnresolvedDependencyEdge(UnresolvedDependencyResult dependency) { this.dependency = dependency; ModuleComponentSelector attempted = (ModuleComponentSelector)dependency.getAttempted(); actual = DefaultModuleComponentIdentifier.newId(attempted.getGroup(), attempted.getModule(), attempted.getVersion()); }