BaseRepositoryFactory createBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator, Instantiator instantiator, FileResolver fileResolver, RepositoryTransportFactory repositoryTransportFactory, LocallyAvailableResourceFinder<ModuleComponentArtifactMetadata> locallyAvailableResourceFinder, ArtifactIdentifierFileStore artifactIdentifierFileStore, VersionSelectorScheme versionSelectorScheme, AuthenticationSchemeRegistry authenticationSchemeRegistry, IvyContextManager ivyContextManager) { return new DefaultBaseRepositoryFactory( localMavenRepositoryLocator, fileResolver, instantiator, repositoryTransportFactory, locallyAvailableResourceFinder, artifactIdentifierFileStore, new GradlePomModuleDescriptorParser(versionSelectorScheme), authenticationSchemeRegistry, ivyContextManager ); }
public MavenResolver(String name, URI rootUri, RepositoryTransport transport, LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder, ResolverStrategy resolverStrategy) { super(name, transport.getRepository(), new ChainedVersionLister(new MavenVersionLister(transport.getRepository()), new ResourceVersionLister(transport.getRepository())), locallyAvailableResourceFinder, new GradlePomModuleDescriptorParser(), resolverStrategy); transport.configureCacheManager(this); this.mavenMetaDataLoader = new MavenMetadataLoader(transport.getRepository()); this.transport = transport; this.root = transport.convertToPath(rootUri); super.setM2compatible(true); // SNAPSHOT revisions are changing revisions setChangingMatcher(PatternMatcher.REGEXP); setChangingPattern(".*-SNAPSHOT"); updatePatterns(); }
public MavenResolver(String name, URI rootUri, RepositoryTransport transport, LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder, FileStore<ModuleComponentArtifactMetaData> artifactFileStore) { super(name, transport.isLocal(), transport.getRepository(), transport.getResourceAccessor(), new ChainedVersionLister(new MavenVersionLister(transport.getRepository()), new ResourceVersionLister(transport.getRepository())), locallyAvailableResourceFinder, artifactFileStore); this.metaDataParser = new GradlePomModuleDescriptorParser(); this.mavenMetaDataLoader = new MavenMetadataLoader(transport.getRepository()); this.root = rootUri; updatePatterns(); }