use of org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceAccessor in project gradle by gradle.
the class DependencyManagementBuildScopeServices method createTextResourceLoader.
TextResourceLoader createTextResourceLoader(ExternalResourceFileStore resourceFileStore, RepositoryTransportFactory repositoryTransportFactory) {
HashSet<String> schemas = Sets.newHashSet("https", "http");
RepositoryTransport transport = repositoryTransportFactory.createTransport(schemas, "http auth", Collections.<Authentication>emptyList());
ExternalResourceAccessor externalResourceAccessor = new DefaultExternalResourceAccessor(resourceFileStore, transport.getResourceAccessor());
return new DefaultUriTextResourceLoader(externalResourceAccessor, schemas);
}
Aggregations