use of org.gradle.internal.resource.transfer.DefaultUriTextResourceLoader 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