mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
The build job failed on this pull request: Maven Central refused nativeruntime-dist-compat-1.0.19.jar (Robolectric's) with HTTP 429, also after Gradle's retries. The cause: setup-gradle's cache did not keep org.robolectric's files (gradle-home-cache-excludes), and the Robolectric cache entry was empty. - MAVEN_CENTRAL_MIRROR (android.yml, apple.yml): Google's mirror of Maven Central. Gradle tries it before Maven Central (settings.gradle.kts). Without the variable, the repositories are as before. - setup-gradle keeps all of Gradle's cache again. - The Robolectric cache entry holds all of org.robolectric's files. Its key is Robolectric's version, its jars' versions and the list of files. A run that downloads more files saves a new entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSYSk1rgeTZ9ZWMcZL Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
30 lines
1.2 KiB
Kotlin
30 lines
1.2 KiB
Kotlin
// MAVEN_CENTRAL_MIRROR (CI: Google's mirror of Maven Central): a mirror that Gradle tries before Maven
|
|
// Central itself, whose rate limit (HTTP 429) refuses downloads from CI's runners
|
|
// (pluginManagement comes first in a settings script: it reads the variable itself)
|
|
pluginManagement {
|
|
repositories {
|
|
google()
|
|
System.getenv("MAVEN_CENTRAL_MIRROR")?.takeIf { it.isNotEmpty() }?.let { maven(it) }
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
val mavenCentralMirror: String? = providers.environmentVariable("MAVEN_CENTRAL_MIRROR").orNull?.takeIf { it.isNotEmpty() }
|
|
dependencyResolutionManagement {
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
google()
|
|
mavenCentralMirror?.let { maven(it) }
|
|
mavenCentral()
|
|
// usb-serial-for-android (USB serial adapters' drivers) is on JitPack only: JitPack for it alone
|
|
exclusiveContent {
|
|
forRepository { maven("https://jitpack.io") }
|
|
filter { includeGroup("com.github.mik3y") }
|
|
}
|
|
}
|
|
}
|
|
rootProject.name = "dmodem-android"
|
|
include(":app")
|
|
// what the Android app and the iOS app share: Kotlin Multiplatform (JVM, iOS)
|
|
include(":shared")
|