mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-12-03 20:01:50 +01:00
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.
29 lines
924 B
Kotlin
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")
|