public DefaultLenientConfiguration(ConfigurationInternal configuration, CacheLockingManager cacheLockingManager, Set<UnresolvedDependency> unresolvedDependencies, VisitedArtifactsResults artifactResults, VisitedFileDependencyResults fileDependencyResults, TransientConfigurationResultsLoader transientConfigurationResultsLoader, ArtifactTransformer artifactTransformer) { this.configuration = configuration; this.cacheLockingManager = cacheLockingManager; this.unresolvedDependencies = unresolvedDependencies; this.artifactResults = artifactResults; this.fileDependencyResults = fileDependencyResults; this.transientConfigurationResultsFactory = transientConfigurationResultsLoader; this.artifactTransformer = artifactTransformer; selectedArtifacts = artifactResults.select(artifactTransformer.variantSelector(configuration.getAttributes())); selectedFileDependencies = fileDependencyResults.select(artifactTransformer.variantSelector(configuration.getAttributes())); }
public void rethrowFailure() throws ResolveException { if (hasError()) { List<Throwable> failures = new ArrayList<Throwable>(); for (UnresolvedDependency unresolvedDependency : unresolvedDependencies) { failures.add(unresolvedDependency.getProblem()); } throw new ResolveException(configuration.toString(), failures); } }
@Override public Set<UnresolvedDependency> getUnresolvedModuleDependencies() { try { return lenientConfiguration.getUnresolvedModuleDependencies(); } catch (Throwable e) { throw wrapException(e, resolveContext); } }
public Set<UnresolvedDependency> getUnresolvedModuleDependencies() { return unresolvedDependencies; }
public DefaultResolvedGraphResults(Set<UnresolvedDependency> unresolvedDependencies, Map<Long, ModuleDependency> modulesMap) { this.unresolvedDependencies = unresolvedDependencies; this.modulesMap = modulesMap; }
@Override public Set<UnresolvedDependency> getUnresolvedDependencies() { return unresolvedDependencies; }
public void addUnresolvedDependency(UnresolvedDependency unresolvedDependency) { unresolvedDependencies.add(unresolvedDependency); }
public Set<UnresolvedDependency> getUnresolvedDependencies() { return unresolvedDependencies; }
Set<UnresolvedDependency> getUnresolvedDependencies();
void addUnresolvedDependency(UnresolvedDependency unresolvedDependency);