Skip to content

Commit

Permalink
add mavenCentral as priority for repos than jcenter
Browse files Browse the repository at this point in the history
JCenter has been offline often and it is causing pipeline issues when trying to download the poms/jars. 
Since JCenter also serves as a mirror for Maven Central, and any dependencies available on Maven Central are also available on JCenter, it is better to rely on Maven Central since Gradle team is discouraging the use of JCenter since it became read-only.
  • Loading branch information
sayurimizuguchi committed May 10, 2022
1 parent 8e8a850 commit 51e0408
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ buildscript {
if (project == rootProject) {
repositories {
google()
mavenCentral()
// JCenter is going read-only repository indefinitely
// Gradle is discouraging jcenter to avoid to avoid build issues - pipeline
// ref: https://blog.gradle.org/jcenter-shutdown
jcenter()
}

Expand Down Expand Up @@ -38,8 +42,8 @@ android {

repositories {
google()
jcenter()
mavenCentral()
jcenter()
}

dependencies {
Expand Down

0 comments on commit 51e0408

Please sign in to comment.