Class MavenArtifactFetcher
java.lang.Object
org.robolectric.internal.dependency.MavenArtifactFetcher
Class responsible for fetching artifacts from Maven. This uses a thread pool of size two in order
to parallelize downloads.
An artifact is downloaded from the first of the repositories that has all of its files, and its checksums are validated as usual, so a repository that fails, for example with a 429 response, is skipped.
-
Constructor Summary
ConstructorsConstructorDescriptionMavenArtifactFetcher(List<String> repositoryUrls, String repositoryUserName, String repositoryPassword, String proxyHost, int proxyPort, File localRepositoryDir, ExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.util.concurrent.ListenableFuture<Void> createFetchToFileTask(URL remoteUrl, File tempFile) voidfetchArtifact(MavenJarArtifact artifact)
-
Constructor Details
-
MavenArtifactFetcher
-
-
Method Details
-
fetchArtifact
-
createFetchToFileTask
-