use of org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolverDescriptorParseContext in project gradle by gradle.
the class AbstractRepositoryMetadataSource method parseMetaDataFromArtifact.
@Nullable
private S parseMetaDataFromArtifact(String repositoryName, ComponentResolvers componentResolvers, ModuleComponentIdentifier moduleComponentIdentifier, ExternalResourceArtifactResolver artifactResolver, ResourceAwareResolveResult result) {
ModuleComponentArtifactMetadata artifact = getMetaDataArtifactFor(moduleComponentIdentifier);
LocallyAvailableExternalResource metadataArtifact = artifactResolver.resolveArtifact(artifact, result);
if (metadataArtifact != null) {
ExternalResourceResolverDescriptorParseContext context = new ExternalResourceResolverDescriptorParseContext(componentResolvers, fileResourceRepository);
return parseMetaDataFromResource(moduleComponentIdentifier, metadataArtifact, artifactResolver, context, repositoryName);
}
return null;
}
Aggregations