Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depracated Jcenter needs to be change to mavenCentral #571

Open
ReiLoko4 opened this issue Feb 25, 2024 · 0 comments
Open

Depracated Jcenter needs to be change to mavenCentral #571

ReiLoko4 opened this issue Feb 25, 2024 · 0 comments

Comments

@ReiLoko4
Copy link

Hello.

Firstly, thanks for your hard work on this project, for sure it is really good.

Today I used patch-package to patch react-native-sqlite-storage@6.0.1 for the project I'm working on.

The build was failing, and I tried using Gradle to debug, and I got the error:
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead.

So I changed it with the diff in one line and thats all. Thanks

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-sqlite-storage/platforms/android/build.gradle b/node_modules/react-native-sqlite-storage/platforms/android/build.gradle
index ff79b10..7d0395e 100644
--- a/node_modules/react-native-sqlite-storage/platforms/android/build.gradle
+++ b/node_modules/react-native-sqlite-storage/platforms/android/build.gradle
@@ -1,7 +1,7 @@
 buildscript {
     repositories {
         google()
-        jcenter()
+        mavenCentral()
     }
 
     dependencies {

This issue body was partially generated by patch-package.

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

No branches or pull requests

1 participant