From 3cf0291008dfeed4d967ebb95bdccbe2d52c5b81 Mon Sep 17 00:00:00 2001 From: Andrei Shikov Date: Thu, 13 Jan 2022 06:00:54 -0800 Subject: [PATCH] Configure plugin repositories to use Gradle Portal last Summary: Gradle Plugin Portal proxies jcenter which is quite unstable these days. This change updates plugin repositories to look into maven central and google first and use gradle plugin repo only as a fallback. Changelog: [Internal] - Prioritize maven central for Gradle plugins Reviewed By: cortinico Differential Revision: D33550827 fbshipit-source-id: b436b05b0fd07865b56dd3e442d8399678dfff85 --- packages/react-native-gradle-plugin/settings.gradle.kts | 3 ++- settings.gradle.kts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react-native-gradle-plugin/settings.gradle.kts b/packages/react-native-gradle-plugin/settings.gradle.kts index 97f105d34f6..c50bb5808dc 100644 --- a/packages/react-native-gradle-plugin/settings.gradle.kts +++ b/packages/react-native-gradle-plugin/settings.gradle.kts @@ -7,8 +7,9 @@ pluginManagement { repositories { - gradlePluginPortal() + mavenCentral() google() + gradlePluginPortal() } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 4f41b5b850c..8e594514423 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -7,8 +7,9 @@ pluginManagement { repositories { - gradlePluginPortal() + mavenCentral() google() + gradlePluginPortal() } }