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

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

Description

@lalcaraz

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch react-native-get-real-path@1.0.0 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions