Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

jcenter server has been sunset; updating to mavenCentral. #25

Open
lalcaraz opened this issue May 16, 2022 · 0 comments
Open

jcenter server has been sunset; updating to mavenCentral. #25

lalcaraz opened this issue May 16, 2022 · 0 comments

Comments

@lalcaraz
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Found that center has been sunset and it's recommended to use mavenCentral or Google to fetch dependencies.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-get-real-path/android/build.gradle b/node_modules/react-native-get-real-path/android/build.gradle
index 2da2b35..086bf0a 100644
--- a/node_modules/react-native-get-real-path/android/build.gradle
+++ b/node_modules/react-native-get-real-path/android/build.gradle
@@ -1,10 +1,15 @@
 buildscript {
     repositories {
-        jcenter()
+        mavenCentral()
+        mavenLocal()
+        google()
+        maven {
+            url 'https://maven.google.com'
+        }
     }
 
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.2.+'
+        classpath 'com.android.tools.build:gradle:4.1.3'
     }
 }
 

This issue body was partially generated by patch-package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant