From 29935b7bee27b2156484d2de9f290d8ed399a21d Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Sun, 1 Nov 2026 05:45:25 +0000 Subject: [PATCH] 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. --- settings.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/settings.gradle.kts b/settings.gradle.kts index bf6e9ac1..5ff0b01d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -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() } }