Skip to content

Commit 704dd28

Browse files
Andrei Shikovfacebook-github-bot
Andrei Shikov
authored andcommitted
Replace jcenter with mavenCentral when possible
Summary: Changelog: [Android][Changed] - Initial replacement of jcenter with mavenCentral. Replaces jcenter with Maven Central in the build files of the repository. Some dependencies are not resolvable from maven central yet, so for now they are included from jcenter, but limited to specific modules only. I didn't touch the template for now. Reviewed By: mdvacca Differential Revision: D26260977 fbshipit-source-id: 2a65e1195b6367c026089184ad6471bf3573dc37
1 parent 96bc33a commit 704dd28

File tree

3 files changed

+36
-5
lines changed

3 files changed

+36
-5
lines changed

build.gradle.kts

+18-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ buildscript {
99
repositories {
1010
mavenLocal()
1111
google()
12-
jcenter()
12+
mavenCentral()
13+
jcenter {
14+
content {
15+
includeModule("org.jetbrains.trove4j", "trove4j")
16+
}
17+
}
1318
}
1419
dependencies {
1520
classpath("com.android.tools.build:gradle:4.1.0")
@@ -32,7 +37,18 @@ allprojects {
3237
}
3338
mavenLocal()
3439
google()
35-
jcenter()
40+
mavenCentral()
41+
jcenter {
42+
content {
43+
includeModule("org.jetbrains.trove4j", "trove4j")
44+
includeModule("com.facebook.flipper", "flipper-network-plugin")
45+
includeModule("com.facebook.flipper", "flipper")
46+
includeModule("com.facebook.flipper", "flipper-fresco-plugin")
47+
includeModule("com.facebook.yoga", "proguard-annotations")
48+
includeModule("com.facebook.fbjni", "fbjni-java-only")
49+
includeModule("com.facebook.fresco", "stetho")
50+
}
51+
}
3652
}
3753

3854
// used to override ndk path on CI

packages/react-native-codegen/android/build.gradle

+12-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ buildscript {
1111
repositories {
1212
mavenLocal()
1313
google()
14-
jcenter()
14+
mavenCentral()
15+
jcenter {
16+
content {
17+
includeGroup("org.jetbrains.trove4j")
18+
}
19+
}
1520
}
1621
dependencies {
1722
classpath("com.android.tools.build:gradle:4.1.0")
@@ -22,7 +27,12 @@ allprojects {
2227
repositories {
2328
mavenLocal()
2429
google()
25-
jcenter()
30+
mavenCentral()
31+
jcenter {
32+
content {
33+
includeGroup("org.jetbrains.trove4j")
34+
}
35+
}
2636
}
2737
}
2838

packages/react-native-codegen/android/gradlePlugin-build/build.gradle

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ allprojects {
99
repositories {
1010
mavenLocal()
1111
google()
12-
jcenter()
12+
mavenCentral()
13+
jcenter {
14+
content {
15+
includeGroup("org.jetbrains.trove4j")
16+
}
17+
}
1318
}
1419
}

0 commit comments

Comments
 (0)