public RenderableUnresolvedDependencyResult(UnresolvedDependencyResult dependency) { this.dependency = dependency; ModuleVersionSelector attempted = dependency.getAttempted(); this.actual = DefaultModuleVersionIdentifier.newId( attempted.getGroup(), attempted.getName(), attempted.getVersion()); }
public ModuleVersionIdentifier getFrom() { ModuleComponentIdentifier moduleComponentIdentifier = dependency.getFrom().getId(); return DefaultModuleVersionIdentifier.newId( moduleComponentIdentifier.getGroup(), moduleComponentIdentifier.getName(), moduleComponentIdentifier.getVersion()); }
public ModuleVersionSelector getRequested() { ModuleComponentSelector moduleComponentSelector = dependency.getRequested(); return DefaultModuleVersionSelector.newSelector( moduleComponentSelector.getGroup(), moduleComponentSelector.getName(), moduleComponentSelector.getVersion()); }
public UnresolvedDependencyEdge(UnresolvedDependencyResult dependency) { this.dependency = dependency; ModuleComponentSelector moduleComponentSelector = dependency.getAttempted(); ModuleVersionSelector attempted = DefaultModuleVersionSelector.newSelector( moduleComponentSelector.getGroup(), moduleComponentSelector.getName(), moduleComponentSelector.getVersion()); actual = DefaultModuleVersionIdentifier.newId( attempted.getGroup(), attempted.getName(), attempted.getVersion()); }
@Override protected ModuleVersionSelector getRequested() { return dependency.getRequested(); }
public Set<? extends RenderableDependency> getChildren() { return Collections.singleton(new InvertedRenderableModuleResult(dependency.getFrom())); }
public ComponentSelectionReason getReason() { return dependency.getAttemptedReason(); }