diff --git a/build-logic/settings.gradle.kts b/build-logic/settings.gradle.kts index c218e2cd34c..6d1ceec50bb 100644 --- a/build-logic/settings.gradle.kts +++ b/build-logic/settings.gradle.kts @@ -14,7 +14,10 @@ pluginManagement { } } gradlePluginPortal() - mavenCentral() + // TODO: temporary fix for Maven Central rate limiting + if (!settings.extra.has("mavenRepositoryProxy")) { + mavenCentral() + } } } @@ -33,7 +36,10 @@ dependencyResolutionManagement { } } gradlePluginPortal() - mavenCentral() + // TODO: temporary fix for Maven Central rate limiting + if (!settings.extra.has("mavenRepositoryProxy")) { + mavenCentral() + } // Hosts gradle-tooling-api; used by the smoke-test plugin to run nested Gradle builds // pinned to older Gradle versions. maven { diff --git a/settings.gradle.kts b/settings.gradle.kts index 14e988af3fe..3ce6557b8e2 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -15,7 +15,10 @@ pluginManagement { } } gradlePluginPortal() - mavenCentral() + // TODO: temporary fix for Maven Central rate limiting + if (!settings.extra.has("mavenRepositoryProxy")) { + mavenCentral() + } // Hosts gradle-tooling-api, a transitive dep of the build-logic:smoke-test plugin used // to run nested Gradle builds for smoke-test applications pinned to older Gradle versions. maven {