Files
proton-stream/android/settings.gradle.kts
T
nvrl d4e77d5333 fix(ci): resolve Maven Central artifacts through Google's mirror first
Central's 429s were not only the Robolectric jar: the next runs failed
configuring the root project, on kotlin-stdlib-jdk8, kotlin-reflect and
kotlin-gradle-plugin-model. Gradle now asks Google's mirror of Central
ahead of Central itself, for plugins and dependencies, and CI fetches the
Robolectric jar from the mirror too.
2026-11-24 22:48:58 +01:00

29 lines
924 B
Kotlin

import java.io.File
// Google's mirror of Maven Central, asked first. Central answers bursts from
// CI runners' shared addresses with 429, which failed builds at plugin
// resolution before a line of the app compiled. The mirror serves the same
// artifacts, and Gradle checks them against Central's checksums all the same.
val centralMirror = "https://maven-central.storage-download.googleapis.com/maven2/"
pluginManagement {
repositories {
google()
maven("https://maven-central.storage-download.googleapis.com/maven2/") { name = "MavenCentralMirror" }
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
maven(centralMirror) { name = "MavenCentralMirror" }
mavenCentral()
}
}
rootProject.name = "proton-stream-android"
include(":app")