use of org.gradle.api.artifacts.ResolvedConfiguration in project gradle by gradle.
the class ErrorHandlingConfigurationResolver method resolveArtifacts.
@Override
public void resolveArtifacts(ConfigurationInternal configuration, ResolverResults results) throws ResolveException {
try {
delegate.resolveArtifacts(configuration, results);
} catch (Throwable e) {
BrokenResolvedConfiguration broken = new BrokenResolvedConfiguration(e, configuration);
results.artifactsResolved(broken, broken);
return;
}
ResolvedConfiguration wrappedConfiguration = new ErrorHandlingResolvedConfiguration(results.getResolvedConfiguration(), configuration);
results.artifactsResolved(wrappedConfiguration, results.getVisitedArtifacts());
}
Aggregations