build: remove JCenter repository

Force trove4j to be resolved from the newer coordinates used by AGP 7.0

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-03-16 14:28:11 +05:30
parent 892295c42a
commit 12a3ec28bc
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80

View File

@ -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"))
}
}
}