Search in sources :

Example 1 with ImmutableMetadataSources

use of org.gradle.api.internal.artifacts.repositories.metadata.ImmutableMetadataSources 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);
    return new MavenResolver(getName(), rootUri, transport, locallyAvailableResourceFinder, artifactFileStore, moduleIdentifierFactory, metadataSources, MavenMetadataArtifactProvider.INSTANCE, mavenMetadataLoader);
}
Also used : MavenResolver(org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver) ImmutableMetadataSources(org.gradle.api.internal.artifacts.repositories.metadata.ImmutableMetadataSources) DefaultImmutableMetadataSources(org.gradle.api.internal.artifacts.repositories.metadata.DefaultImmutableMetadataSources) RepositoryTransport(org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransport) MavenMetadataLoader(org.gradle.api.internal.artifacts.repositories.maven.MavenMetadataLoader)

Aggregations

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 MavenResolver (org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver)1 RepositoryTransport (org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransport)1