Skip to content

Commit 3ac066f

Browse files
chore: remove jCenter in gradle build files (craftzdog#138)
1 parent 1491675 commit 3ac066f

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

android/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ buildscript {
22
if (project == rootProject) {
33
repositories {
44
google()
5-
jcenter()
65
mavenCentral()
76
}
87

@@ -50,13 +49,12 @@ android {
5049

5150
repositories {
5251
mavenLocal()
53-
maven {
54-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
55-
url("$rootDir/../node_modules/react-native/android")
56-
}
52+
maven {
53+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
54+
url("$rootDir/../node_modules/react-native/android")
55+
}
5756
google()
58-
mavenCentral()
59-
jcenter()
57+
mavenCentral()
6058
}
6159

6260
dependencies {

example/android/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ buildscript {
1111
repositories {
1212
google()
1313
mavenCentral()
14-
jcenter()
1514
}
1615
dependencies {
1716
classpath("com.android.tools.build:gradle:4.2.2")
@@ -39,7 +38,9 @@ allprojects {
3938
}
4039
}
4140
google()
42-
jcenter()
43-
maven { url 'https://www.jitpack.io' }
41+
42+
maven { url "https://maven.aliyun.com/repository/jcenter" }
43+
maven { url "https://plugins.gradle.org/m2/" }
44+
maven { url "https://jitpack.io" }
4445
}
4546
}

0 commit comments

Comments
 (0)