Skip to content

Remove deprecated jcenter (gradle 9) #75

@Sydney-o9

Description

@Sydney-o9

Starting from gradle 9, jcenter is removed, see also gradle/gradle#34504

Here is the diff to solve this:

diff --git a/node_modules/react-native-sha256/android/.project b/node_modules/react-native-sha256/android/.project
new file mode 100644
index 0000000..a54be25
--- /dev/null
+++ b/node_modules/react-native-sha256/android/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>react-native-sha256</name>
+	<comment>Project react-native-sha256 created by Buildship.</comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
+	</natures>
+	<filteredResources>
+		<filter>
+			<id>1742806926025</id>
+			<name></name>
+			<type>30</type>
+			<matcher>
+				<id>org.eclipse.core.resources.regexFilterMatcher</id>
+				<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
+			</matcher>
+		</filter>
+	</filteredResources>
+</projectDescription>
diff --git a/node_modules/react-native-sha256/android/build.gradle b/node_modules/react-native-sha256/android/build.gradle
index e837bf7..d281934 100644
--- a/node_modules/react-native-sha256/android/build.gradle
+++ b/node_modules/react-native-sha256/android/build.gradle
@@ -2,7 +2,7 @@ buildscript {
     if (project == rootProject) {
         repositories {
             google()
-            jcenter()
+            mavenCentral()
         }
 
         dependencies {
@@ -54,7 +54,7 @@ repositories {
         url("$rootDir/../node_modules/react-native/android")
     }
     google()
-    jcenter()
+    mavenCentral()
 }
 
 dependencies {

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions