Skip to content

Commit 6b9f12b

Browse files
committed
replaced JCenter with mavenCentral
1 parent 070cfd2 commit 6b9f12b

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ apply plugin: 'java'
99
buildscript {
1010
repositories {
1111
google()
12-
jcenter()
12+
mavenCentral()
1313
}
1414
dependencies {
1515
classpath 'com.android.tools.build:gradle:4.1.1'
@@ -77,7 +77,7 @@ allprojects {
7777

7878
repositories {
7979
google()
80-
jcenter()
80+
mavenCentral()
8181
maven { url "https://maven.google.com" }
8282
maven { url "https://jitpack.io" }
8383
maven { url 'https://repo.gradle.org/gradle/libs-releases' }

buildSrc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'groovy'
22

33
repositories {
44
google()
5-
jcenter()
5+
mavenCentral()
66
}
77

88
dependencies {

debug/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
buildscript {
44
repositories {
55
google()
6-
jcenter()
6+
mavenCentral()
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:4.1.1'
@@ -15,15 +15,14 @@ buildscript {
1515

1616
allprojects {
1717
repositories {
18-
// There is a problem in JCenter with some Android packages, using the following maven repo
19-
// fixes the issue:
20-
// https://stackoverflow.com/questions/50563338/could-not-find-runtime-jar-android-arch-lifecycleruntime1-0-0/50564224
18+
// This was was added to address an issue in JCenter with some Android packages (https://stackoverflow.com/questions/50563338/could-not-find-runtime-jar-android-arch-lifecycleruntime1-0-0/50564224).
19+
// JCenter is no longer used but keep it just in case.
2120
maven { url "https://maven.google.com" }
2221

2322
// Apparently needed by AndroidX dependencies
2423
maven { url "https://jitpack.io" }
2524

26-
jcenter()
25+
mavenCentral()
2726
google()
2827
}
2928
}

mode/templates/TopBuild.gradle.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44

55
repositories {
66
google()
7-
jcenter()
7+
mavenCentral()
88
}
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:@@gradle_version@@'
@@ -19,7 +19,7 @@ allprojects {
1919
maven { url "https://maven.google.com" }
2020
maven { url "https://jitpack.io" }
2121
google()
22-
jcenter()
22+
mavenCentral()
2323
}
2424
}
2525

0 commit comments

Comments
 (0)