use of org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.BuildDependenciesVisitor in project gradle by gradle.
the class DependencyResolvingClasspath method getBuildDependencies.
@Override
public TaskDependency getBuildDependencies() {
ensureResolved(false);
final List<Object> taskDependencies = new ArrayList<Object>();
final List<Throwable> failures = new ArrayList<Throwable>();
resolveResult.artifactsResults.getArtifacts().collectBuildDependencies(new BuildDependenciesVisitor() {
@Override
public void visitDependency(Object dep) {
taskDependencies.add(dep);
}
@Override
public void visitFailure(Throwable failure) {
failures.add(failure);
}
});
if (!failures.isEmpty()) {
throw new ResolveException(getDisplayName(), failures);
}
return TaskDependencies.of(taskDependencies);
}
Aggregations