build: mirror Maven Central for dependency resolution

The CI runner's egress IP is rate-limited by repo.maven.apache.org (HTTP 429 on a Robolectric native runtime jar), and a missing Gradle cache then breaks the run. Try Google's Maven Central mirror first and fall back to the canonical repository.
This commit is contained in:
austinried
2026-11-01 05:45:25 +00:00
parent 4bfe67ec19
commit 29935b7bee
+6
View File
@@ -7,6 +7,9 @@ pluginManagement {
includeGroupByRegex("androidx.*")
}
}
maven("https://maven-central.storage-download.googleapis.com/maven2/") {
name = "MavenCentralMirror"
}
mavenCentral()
gradlePluginPortal()
}
@@ -16,6 +19,9 @@ dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
maven("https://maven-central.storage-download.googleapis.com/maven2/") {
name = "MavenCentralMirror"
}
mavenCentral()
}
}