From 12a3ec28bc11e1041c060ffefb5fd510760f4c93 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 16 Mar 2021 14:28:11 +0530 Subject: [PATCH] build: remove JCenter repository Force trove4j to be resolved from the newer coordinates used by AGP 7.0 Signed-off-by: Harsh Shandilya --- build.gradle | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 0e1aeae4..c60146ca 100644 --- a/build.gradle +++ b/build.gradle @@ -70,13 +70,12 @@ allprojects { repositories { google() mavenCentral() - jcenter() { - content { - // https://github.com/journeyapps/zxing-android-embedded/issues/606 - includeModule("com.journeyapps", "zxing-android-embedded") - // https://youtrack.jetbrains.com/issue/IDEA-261387 - includeModule("org.jetbrains.trove4j", "trove4j") - } + } + configurations.all { + // New versions use different maven coordinates and are available on Maven Central + resolutionStrategy.dependencySubstitution { + substitute(module("org.jetbrains.trove4j:trove4j:20160824")) + .using(module("org.jetbrains.intellij.deps:trove4j:1.0.20181211")) } } }