From 6af5394bd77d359180053b512e2c7bc103d51742 Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Wed, 14 Aug 2024 04:10:51 +1000 Subject: [PATCH] Replace usage of jcenter in React Native build.gradle files (#21714) ### Description Replace jcenter. It's deprecated and not responding. ### Motivation and Context Fix CIs --- js/react_native/android/build.gradle | 3 +-- js/react_native/e2e/android/build.gradle | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/js/react_native/android/build.gradle b/js/react_native/android/build.gradle index e52bec0b57cde..825990eba0fb8 100644 --- a/js/react_native/android/build.gradle +++ b/js/react_native/android/build.gradle @@ -3,7 +3,7 @@ import java.nio.file.Paths buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -145,7 +145,6 @@ android { repositories { mavenCentral() - jcenter() google() def found = false diff --git a/js/react_native/e2e/android/build.gradle b/js/react_native/e2e/android/build.gradle index 08e1f9c017584..5932dfc5695d6 100644 --- a/js/react_native/e2e/android/build.gradle +++ b/js/react_native/e2e/android/build.gradle @@ -10,7 +10,7 @@ buildscript { } repositories { google() - jcenter() + mavenCentral() } dependencies { classpath('com.android.tools.build:gradle:7.1.1') @@ -31,13 +31,13 @@ allprojects { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } - maven { + maven { // Add Detox as a precompiled native dependency url("$rootDir/../node_modules/detox/Detox-android") } google() - jcenter() + mavenCentral() maven { url 'https://www.jitpack.io' } } }