Search in sources :

Example 1 with ResolvedConfiguration

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());
}
Also used : ResolvedConfiguration(org.gradle.api.artifacts.ResolvedConfiguration)

Aggregations

ResolvedConfiguration (org.gradle.api.artifacts.ResolvedConfiguration)1