Skip to content

ci: fetch Maven Central artifacts from Google's mirror - #18

Merged
R44VC0RP merged 1 commit into
mainfrom
ci-mirror
Nov 9, 2026
Merged

R44VC0RP merged 1 commit into
mainfrom
ci-mirror

Conversation

@R44VC0RP

@R44VC0RP R44VC0RP commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Maven Central is rate-limiting our CI runners (HTTP 429 on repo.maven.apache.org). Since the Robolectric jars are resolved by Gradle (#17), every run fails at configuration time: main ba842adc (3 retries), PR #16, and the noon release build for v0.3.8, which never reached Play.

CI now installs .github/gradle/maven-mirror.init.gradle.kts, which puts Google's public Maven Central mirror (maven-central.storage-download.googleapis.com/maven2) ahead of mavenCentral() in pluginManagement and dependencyResolutionManagement, excluding Google-Maven groups (androidx, com.android, com.google.android, firebase). Maven Central stays as the fallback. CI only: settings.gradle.kts and local builds are unchanged.

Verified on the QA VM with both Maven Central hosts blocked and empty Gradle/Maven caches: all dependencies, including both android-all jars, resolve from the mirror; the configuration cache is stored and reused with --configuration-cache-problems=fail; full scripts/check.sh passes (6m 41s).

Keep Maven Central as a fallback rather than requiring rate-limited Blacksmith runners to fetch from it first. Install the settings init script for the check and tagged release bundle only; leave local repository settings unchanged and Android-specific groups on Google Maven.

Verified on the QA VM with both Central hosts blocked: ComposerAutocompleteTests passed, both API 34 and 35 jars downloaded from the mirror with empty Gradle and Maven caches, and prepareRobolectricSdks stored and reused the configuration cache with problems=fail.
@R44VC0RP
R44VC0RP merged commit 17c7227 into main Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant