From 51e040873f5d24110c4ad8dbd63c2ee9d141b2d1 Mon Sep 17 00:00:00 2001 From: Sayuri Mizuguchi Date: Mon, 9 May 2022 23:46:50 -0400 Subject: [PATCH] add mavenCentral as priority for repos than jcenter 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. --- android/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 555c82e..335a1de 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -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() } @@ -38,8 +42,8 @@ android { repositories { google() - jcenter() mavenCentral() + jcenter() } dependencies {