react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

Depracated Jcenter needs to be change to mavenCentral

Open ReiLoko4 opened this issue 1 year ago • 1 comments

Hello.

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

Today I used patch-package to patch [email protected] 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.

ReiLoko4 avatar Feb 25 '24 04:02 ReiLoko4

But if you clean the build project it returns to jcenter().

mateus-bernart avatar Nov 28 '25 17:11 mateus-bernart