use of org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver in project gradle by gradle.
the class DefaultMavenArtifactRepository method createResolver.
private MavenResolver createResolver(URI rootUri) {
RepositoryTransport transport = getTransport(rootUri.getScheme());
MavenMetadataLoader mavenMetadataLoader = new MavenMetadataLoader(transport.getResourceAccessor(), resourcesFileStore);
ImmutableMetadataSources metadataSources = createMetadataSources(mavenMetadataLoader);
Instantiator injector = createInjectorForMetadataSuppliers(transport, instantiatorFactory, getUrl(), resourcesFileStore);
InstantiatingAction<ComponentMetadataSupplierDetails> supplier = createComponentMetadataSupplierFactory(injector, isolatableFactory);
InstantiatingAction<ComponentMetadataListerDetails> lister = createComponentMetadataVersionLister(injector, isolatableFactory);
return new MavenResolver(getName(), rootUri, transport, locallyAvailableResourceFinder, artifactFileStore, metadataSources, MavenMetadataArtifactProvider.INSTANCE, mavenMetadataLoader, supplier, lister, injector, checksumService);
}
use of org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver in project gradle by gradle.
the class DefaultMavenArtifactRepository method createRealResolver.
protected MavenResolver createRealResolver() {
URI rootUrl = validateUrl();
MavenResolver resolver = createResolver(rootUrl);
for (URI repoUrl : getArtifactUrls()) {
resolver.addArtifactLocation(repoUrl);
}
return resolver;
}
use of org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver in project gradle by gradle.
the class DefaultMavenLocalArtifactRepository method createRealResolver.
@Override
protected MavenResolver createRealResolver() {
URI rootUri = validateUrl();
RepositoryTransport transport = getTransport(rootUri.getScheme());
MavenMetadataLoader mavenMetadataLoader = new MavenMetadataLoader(transport.getResourceAccessor(), getResourcesFileStore());
Instantiator injector = createInjectorForMetadataSuppliers(transport, getInstantiatorFactory(), rootUri, getResourcesFileStore());
MavenResolver resolver = new MavenResolver(getName(), rootUri, transport, getLocallyAvailableResourceFinder(), getArtifactFileStore(), createMetadataSources(mavenMetadataLoader), MavenMetadataArtifactProvider.INSTANCE, mavenMetadataLoader, null, null, injector, checksumService);
for (URI repoUrl : getArtifactUrls()) {
resolver.addArtifactLocation(repoUrl);
}
return resolver;
}
Aggregations