Search in sources :

Example 1 with ComponentMetadataListerDetails

use of org.gradle.api.artifacts.ComponentMetadataListerDetails 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);
}
Also used : MavenResolver(org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver) ComponentMetadataSupplierDetails(org.gradle.api.artifacts.ComponentMetadataSupplierDetails) Instantiator(org.gradle.internal.reflect.Instantiator) DefaultImmutableMetadataSources(org.gradle.api.internal.artifacts.repositories.metadata.DefaultImmutableMetadataSources) ImmutableMetadataSources(org.gradle.api.internal.artifacts.repositories.metadata.ImmutableMetadataSources) RepositoryTransport(org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransport) MavenMetadataLoader(org.gradle.api.internal.artifacts.repositories.maven.MavenMetadataLoader) ComponentMetadataListerDetails(org.gradle.api.artifacts.ComponentMetadataListerDetails)

Example 2 with ComponentMetadataListerDetails

use of org.gradle.api.artifacts.ComponentMetadataListerDetails in project gradle by gradle.

the class DefaultIvyArtifactRepository method createResolver.

private IvyResolver createResolver(RepositoryTransport transport) {
    Instantiator injector = createInjectorForMetadataSuppliers(transport, instantiatorFactory, getUrl(), externalResourcesFileStore);
    InstantiatingAction<ComponentMetadataSupplierDetails> supplierFactory = createComponentMetadataSupplierFactory(injector, isolatableFactory);
    InstantiatingAction<ComponentMetadataListerDetails> listerFactory = createComponentMetadataVersionLister(injector, isolatableFactory);
    return new IvyResolver(getName(), transport, locallyAvailableResourceFinder, metaDataProvider.dynamicResolve, artifactFileStore, supplierFactory, listerFactory, createMetadataSources(), IvyMetadataArtifactProvider.INSTANCE, injector, checksumService);
}
Also used : ComponentMetadataSupplierDetails(org.gradle.api.artifacts.ComponentMetadataSupplierDetails) IvyResolver(org.gradle.api.internal.artifacts.repositories.resolver.IvyResolver) Instantiator(org.gradle.internal.reflect.Instantiator) ComponentMetadataListerDetails(org.gradle.api.artifacts.ComponentMetadataListerDetails)

Aggregations

ComponentMetadataListerDetails (org.gradle.api.artifacts.ComponentMetadataListerDetails)2 ComponentMetadataSupplierDetails (org.gradle.api.artifacts.ComponentMetadataSupplierDetails)2 Instantiator (org.gradle.internal.reflect.Instantiator)2 MavenMetadataLoader (org.gradle.api.internal.artifacts.repositories.maven.MavenMetadataLoader)1 DefaultImmutableMetadataSources (org.gradle.api.internal.artifacts.repositories.metadata.DefaultImmutableMetadataSources)1 ImmutableMetadataSources (org.gradle.api.internal.artifacts.repositories.metadata.ImmutableMetadataSources)1 IvyResolver (org.gradle.api.internal.artifacts.repositories.resolver.IvyResolver)1 MavenResolver (org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver)1 RepositoryTransport (org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransport)1