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.*") includeGroupByRegex("androidx.*")
} }
} }
maven("https://maven-central.storage-download.googleapis.com/maven2/") {
name = "MavenCentralMirror"
}
mavenCentral() mavenCentral()
gradlePluginPortal() gradlePluginPortal()
} }
@@ -16,6 +19,9 @@ dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories { repositories {
google() google()
maven("https://maven-central.storage-download.googleapis.com/maven2/") {
name = "MavenCentralMirror"
}
mavenCentral() mavenCentral()
} }
} }