From bb7b7b69e0840b0407b21faeaa2875f14042a878 Mon Sep 17 00:00:00 2001 From: Chris Lee Date: Mon, 22 Jul 2024 14:32:16 -0700 Subject: [PATCH] Use caching repository mirror instead of Maven Central (#4208) --- settings.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index ed7b6bc9b9e..91eb4ffa49c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -12,7 +12,10 @@ dependencyResolutionManagement { repositoriesMode = RepositoriesMode.PREFER_SETTINGS repositories { - mavenCentral() + // use a caching mirror for maven central. https://www.sonatype.com/blog/maven-central-and-the-tragedy-of-the-commons + maven("https://cache-redirector.jetbrains.com/repo1.maven.org/maven2") { + name = "JetBrains Maven Central mirror" + } maven("https://oss.sonatype.org/content/repositories/snapshots/") { name = "SonatypeSnapshots" mavenContent { snapshotsOnly() }