Skip to content

Commit

Permalink
Replace jcenter with mavenCentral when possible
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Andrei Shikov authored and facebook-github-bot committed Feb 5, 2021
1 parent 96bc33a commit 704dd28
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
20 changes: 18 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ buildscript {
repositories {
mavenLocal()
google()
jcenter()
mavenCentral()
jcenter {
content {
includeModule("org.jetbrains.trove4j", "trove4j")
}
}
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.0")
Expand All @@ -32,7 +37,18 @@ allprojects {
}
mavenLocal()
google()
jcenter()
mavenCentral()
jcenter {
content {
includeModule("org.jetbrains.trove4j", "trove4j")
includeModule("com.facebook.flipper", "flipper-network-plugin")
includeModule("com.facebook.flipper", "flipper")
includeModule("com.facebook.flipper", "flipper-fresco-plugin")
includeModule("com.facebook.yoga", "proguard-annotations")
includeModule("com.facebook.fbjni", "fbjni-java-only")
includeModule("com.facebook.fresco", "stetho")
}
}
}

// used to override ndk path on CI
Expand Down
14 changes: 12 additions & 2 deletions packages/react-native-codegen/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ buildscript {
repositories {
mavenLocal()
google()
jcenter()
mavenCentral()
jcenter {
content {
includeGroup("org.jetbrains.trove4j")
}
}
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.0")
Expand All @@ -22,7 +27,12 @@ allprojects {
repositories {
mavenLocal()
google()
jcenter()
mavenCentral()
jcenter {
content {
includeGroup("org.jetbrains.trove4j")
}
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ allprojects {
repositories {
mavenLocal()
google()
jcenter()
mavenCentral()
jcenter {
content {
includeGroup("org.jetbrains.trove4j")
}
}
}
}

0 comments on commit 704dd28

Please sign in to comment.