use of org.gradle.internal.resolve.ArtifactResolveException in project gradle by gradle.
the class ExternalResourceResolver method resolveArtifact.
protected void resolveArtifact(ComponentArtifactMetadata componentArtifact, ModuleSource moduleSource, BuildableArtifactResolveResult result) {
ModuleComponentArtifactMetadata artifact = (ModuleComponentArtifactMetadata) componentArtifact;
File localFile;
try {
localFile = download(artifact, moduleSource, result);
} catch (Throwable e) {
result.failed(new ArtifactResolveException(artifact.getId(), e));
return;
}
if (localFile != null) {
result.resolved(localFile);
} else {
result.notFound(artifact.getId());
}
}
Aggregations