org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransportFactory Java Examples

The following examples show how to use org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransportFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DependencyManagementBuildScopeServices.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
RepositoryTransportFactory createRepositoryTransportFactory(ProgressLoggerFactory progressLoggerFactory, LocalFileRepositoryArtifactCache localFileRepositoryArtifactCache,
                                                            DownloadingRepositoryArtifactCache downloadingRepositoryArtifactCache, TemporaryFileProvider temporaryFileProvider,
                                                            ByUrlCachedExternalResourceIndex externalResourceIndex, BuildCommencedTimeProvider buildCommencedTimeProvider) {
    return new RepositoryTransportFactory(
            progressLoggerFactory,
            localFileRepositoryArtifactCache,
            downloadingRepositoryArtifactCache,
            temporaryFileProvider,
            externalResourceIndex,
            buildCommencedTimeProvider
    );
}
 
Example #2
Source File: DefaultBaseRepositoryFactory.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator,
                                    FileResolver fileResolver,
                                    Instantiator instantiator,
                                    RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                    LegacyDependencyResolverRepositoryFactory legacyDependencyResolverRepositoryFactory,
                                    ResolverStrategy resolverStrategy) {
    this.localMavenRepositoryLocator = localMavenRepositoryLocator;
    this.fileResolver = fileResolver;
    this.instantiator = instantiator;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.legacyDependencyResolverRepositoryFactory = legacyDependencyResolverRepositoryFactory;
    this.resolverStrategy = resolverStrategy;
}
 
Example #3
Source File: DefaultMavenArtifactRepository.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultMavenArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                      LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                      ResolverStrategy resolverStrategy) {
    super(credentials);
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
}
 
Example #4
Source File: DefaultIvyArtifactRepository.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultIvyArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder, Instantiator instantiator,
                                    ResolverStrategy resolverStrategy) {
    super(credentials);
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
    this.additionalPatternsLayout = new AdditionalPatternsRepositoryLayout(fileResolver);
    this.layout = new GradleRepositoryLayout();
    this.metaDataProvider = new MetaDataProvider();
    this.instantiator = instantiator;
}
 
Example #5
Source File: DefaultDependencyManagementServices.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
BaseRepositoryFactory createBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator, Instantiator instantiator, FileResolver fileResolver,
                                                  RepositoryTransportFactory repositoryTransportFactory, LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                                  ResolverStrategy resolverStrategy, ArtifactIdentifierFileStore artifactIdentifierFileStore) {
    return new DefaultBaseRepositoryFactory(
            localMavenRepositoryLocator,
            fileResolver,
            instantiator,
            repositoryTransportFactory,
            locallyAvailableResourceFinder,
            resolverStrategy,
            artifactIdentifierFileStore
    );
}
 
Example #6
Source File: DependencyManagementBuildScopeServices.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
RepositoryTransportFactory createRepositoryTransportFactory(ProgressLoggerFactory progressLoggerFactory,
                                                            TemporaryFileProvider temporaryFileProvider,
                                                            ByUrlCachedExternalResourceIndex externalResourceIndex,
                                                            BuildCommencedTimeProvider buildCommencedTimeProvider,
                                                            SftpClientFactory sftpClientFactory,
                                                            CacheLockingManager cacheLockingManager) {
    return new RepositoryTransportFactory(
            progressLoggerFactory,
            temporaryFileProvider,
            externalResourceIndex,
            buildCommencedTimeProvider,
            sftpClientFactory,
            cacheLockingManager
    );
}
 
Example #7
Source File: DefaultFlatDirArtifactRepository.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultFlatDirArtifactRepository(FileResolver fileResolver,
                                        RepositoryTransportFactory transportFactory,
                                        LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                        ResolverStrategy resolverStrategy,
                                        FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
    this.artifactFileStore = artifactFileStore;
}
 
Example #8
Source File: DefaultMavenArtifactRepository.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultMavenArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                      LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                      FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    super(credentials);
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.artifactFileStore = artifactFileStore;
}
 
Example #9
Source File: DefaultBaseRepositoryFactory.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator,
                                    FileResolver fileResolver,
                                    Instantiator instantiator,
                                    RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                    ResolverStrategy resolverStrategy,
                                    FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    this.localMavenRepositoryLocator = localMavenRepositoryLocator;
    this.fileResolver = fileResolver;
    this.instantiator = instantiator;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
    this.artifactFileStore = artifactFileStore;
}
 
Example #10
Source File: DefaultFlatDirArtifactRepository.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultFlatDirArtifactRepository(FileResolver fileResolver,
                                        RepositoryTransportFactory transportFactory,
                                        LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                        ResolverStrategy resolverStrategy) {
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
}
 
Example #11
Source File: DefaultIvyArtifactRepository.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultIvyArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder, Instantiator instantiator,
                                    ResolverStrategy resolverStrategy, FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    super(credentials);
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
    this.artifactFileStore = artifactFileStore;
    this.additionalPatternsLayout = new AdditionalPatternsRepositoryLayout(fileResolver);
    this.layout = new GradleRepositoryLayout();
    this.metaDataProvider = new MetaDataProvider();
    this.instantiator = instantiator;
}
 
Example #12
Source File: DefaultIvyArtifactRepository.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultIvyArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder, Instantiator instantiator,
                                    ResolverStrategy resolverStrategy, FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    super(credentials);
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
    this.artifactFileStore = artifactFileStore;
    this.additionalPatternsLayout = new AdditionalPatternsRepositoryLayout(fileResolver);
    this.layout = new GradleRepositoryLayout();
    this.metaDataProvider = new MetaDataProvider();
    this.instantiator = instantiator;
}
 
Example #13
Source File: DefaultDependencyManagementServices.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
BaseRepositoryFactory createBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator, Instantiator instantiator, FileResolver fileResolver,
                                                  RepositoryTransportFactory repositoryTransportFactory, LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                                  LegacyDependencyResolverRepositoryFactory legacyDependencyResolverRepositoryFactory,
                                                  ResolverStrategy resolverStrategy) {
    return new DefaultBaseRepositoryFactory(
            localMavenRepositoryLocator,
            fileResolver,
            instantiator,
            repositoryTransportFactory,
            locallyAvailableResourceFinder,
            legacyDependencyResolverRepositoryFactory,
            resolverStrategy
    );
}
 
Example #14
Source File: DefaultFlatDirArtifactRepository.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultFlatDirArtifactRepository(FileResolver fileResolver,
                                        RepositoryTransportFactory transportFactory,
                                        LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                        ResolverStrategy resolverStrategy) {
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
}
 
Example #15
Source File: DefaultMavenArtifactRepository.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultMavenArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                      LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                      ResolverStrategy resolverStrategy) {
    super(credentials);
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
}
 
Example #16
Source File: DefaultBaseRepositoryFactory.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator,
                                    FileResolver fileResolver,
                                    Instantiator instantiator,
                                    RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                    LegacyDependencyResolverRepositoryFactory legacyDependencyResolverRepositoryFactory,
                                    ResolverStrategy resolverStrategy) {
    this.localMavenRepositoryLocator = localMavenRepositoryLocator;
    this.fileResolver = fileResolver;
    this.instantiator = instantiator;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.legacyDependencyResolverRepositoryFactory = legacyDependencyResolverRepositoryFactory;
    this.resolverStrategy = resolverStrategy;
}
 
Example #17
Source File: DependencyManagementBuildScopeServices.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
RepositoryTransportFactory createRepositoryTransportFactory(ProgressLoggerFactory progressLoggerFactory, LocalFileRepositoryArtifactCache localFileRepositoryArtifactCache,
                                                            DownloadingRepositoryArtifactCache downloadingRepositoryArtifactCache, TemporaryFileProvider temporaryFileProvider,
                                                            ByUrlCachedExternalResourceIndex externalResourceIndex, BuildCommencedTimeProvider buildCommencedTimeProvider) {
    return new RepositoryTransportFactory(
            progressLoggerFactory,
            localFileRepositoryArtifactCache,
            downloadingRepositoryArtifactCache,
            temporaryFileProvider,
            externalResourceIndex,
            buildCommencedTimeProvider
    );
}
 
Example #18
Source File: DefaultIvyArtifactRepository.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultIvyArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder, Instantiator instantiator,
                                    ResolverStrategy resolverStrategy) {
    super(credentials);
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
    this.additionalPatternsLayout = new AdditionalPatternsRepositoryLayout(fileResolver);
    this.layout = new GradleRepositoryLayout();
    this.metaDataProvider = new MetaDataProvider();
    this.instantiator = instantiator;
}
 
Example #19
Source File: DefaultDependencyManagementServices.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
BaseRepositoryFactory createBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator, Instantiator instantiator, FileResolver fileResolver,
                                                  RepositoryTransportFactory repositoryTransportFactory, LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                                  ResolverStrategy resolverStrategy, ArtifactIdentifierFileStore artifactIdentifierFileStore) {
    return new DefaultBaseRepositoryFactory(
            localMavenRepositoryLocator,
            fileResolver,
            instantiator,
            repositoryTransportFactory,
            locallyAvailableResourceFinder,
            resolverStrategy,
            artifactIdentifierFileStore
    );
}
 
Example #20
Source File: DependencyManagementBuildScopeServices.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
RepositoryTransportFactory createRepositoryTransportFactory(ProgressLoggerFactory progressLoggerFactory,
                                                            TemporaryFileProvider temporaryFileProvider,
                                                            ByUrlCachedExternalResourceIndex externalResourceIndex,
                                                            BuildCommencedTimeProvider buildCommencedTimeProvider,
                                                            SftpClientFactory sftpClientFactory,
                                                            CacheLockingManager cacheLockingManager) {
    return new RepositoryTransportFactory(
            progressLoggerFactory,
            temporaryFileProvider,
            externalResourceIndex,
            buildCommencedTimeProvider,
            sftpClientFactory,
            cacheLockingManager
    );
}
 
Example #21
Source File: DefaultFlatDirArtifactRepository.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultFlatDirArtifactRepository(FileResolver fileResolver,
                                        RepositoryTransportFactory transportFactory,
                                        LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                        ResolverStrategy resolverStrategy,
                                        FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
    this.artifactFileStore = artifactFileStore;
}
 
Example #22
Source File: DefaultMavenArtifactRepository.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultMavenArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                      LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                      FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    super(credentials);
    this.fileResolver = fileResolver;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.artifactFileStore = artifactFileStore;
}
 
Example #23
Source File: DefaultBaseRepositoryFactory.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator,
                                    FileResolver fileResolver,
                                    Instantiator instantiator,
                                    RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                    ResolverStrategy resolverStrategy,
                                    FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    this.localMavenRepositoryLocator = localMavenRepositoryLocator;
    this.fileResolver = fileResolver;
    this.instantiator = instantiator;
    this.transportFactory = transportFactory;
    this.locallyAvailableResourceFinder = locallyAvailableResourceFinder;
    this.resolverStrategy = resolverStrategy;
    this.artifactFileStore = artifactFileStore;
}
 
Example #24
Source File: DefaultDependencyManagementServices.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
BaseRepositoryFactory createBaseRepositoryFactory(LocalMavenRepositoryLocator localMavenRepositoryLocator, Instantiator instantiator, FileResolver fileResolver,
                                                  RepositoryTransportFactory repositoryTransportFactory, LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                                  LegacyDependencyResolverRepositoryFactory legacyDependencyResolverRepositoryFactory,
                                                  ResolverStrategy resolverStrategy) {
    return new DefaultBaseRepositoryFactory(
            localMavenRepositoryLocator,
            fileResolver,
            instantiator,
            repositoryTransportFactory,
            locallyAvailableResourceFinder,
            legacyDependencyResolverRepositoryFactory,
            resolverStrategy
    );
}
 
Example #25
Source File: PublishToMavenRepositoryHook.java    From atlas with Apache License 2.0 4 votes vote down vote up
@Inject
protected RepositoryTransportFactory getRepositoryTransportFactory() {
    throw new UnsupportedOperationException();
}
 
Example #26
Source File: DefaultMavenLocalArtifactRepository.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DefaultMavenLocalArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                    ResolverStrategy resolverStrategy) {
    super(fileResolver, credentials, transportFactory, locallyAvailableResourceFinder, resolverStrategy);
}
 
Example #27
Source File: DefaultMavenLocalArtifactRepository.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DefaultMavenLocalArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                    FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    super(fileResolver, credentials, transportFactory, locallyAvailableResourceFinder, artifactFileStore);
}
 
Example #28
Source File: DefaultMavenLocalArtifactRepository.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DefaultMavenLocalArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleVersionArtifactMetaData> locallyAvailableResourceFinder,
                                    ResolverStrategy resolverStrategy) {
    super(fileResolver, credentials, transportFactory, locallyAvailableResourceFinder, resolverStrategy);
}
 
Example #29
Source File: DefaultMavenLocalArtifactRepository.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DefaultMavenLocalArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory,
                                    LocallyAvailableResourceFinder<ModuleComponentArtifactMetaData> locallyAvailableResourceFinder,
                                    FileStore<ModuleComponentArtifactMetaData> artifactFileStore) {
    super(fileResolver, credentials, transportFactory, locallyAvailableResourceFinder, artifactFileStore);
}