Skip to content

Commit bbcb79a

Browse files
committed
rm jcenter() and replace with mavenCentral()
jcenter() is no longer getting updates and will be shut down soon. Simplified maven { url 'https://maven.google.com' } into google(). Simplified maven { url 'https://plugins.gradle.org/m2/' } into gradlePluginPortal(). Gradle 7 requires all URLs to be HTTPS, updated Huawei.
1 parent 735b9fb commit bbcb79a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

OneSignalSDK/build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ buildscript {
1818

1919
repositories {
2020
google()
21-
jcenter()
22-
maven { url 'https://maven.google.com' }
21+
mavenCentral()
2322

2423
// OneSignal-Gradle-Plugin - Local testing
2524
// maven { url uri('../../repo') }
2625

2726
// OneSignal-Gradle-Plugin - Public version
28-
maven { url 'https://plugins.gradle.org/m2/' }
27+
gradlePluginPortal()
28+
2929
// Huawei maven
30-
maven { url 'http://developer.huawei.com/repo/' }
30+
maven { url 'https://developer.huawei.com/repo/' }
3131
}
3232
dependencies {
3333
classpath "com.android.tools.build:gradle:$androidGradlePluginVersion"
@@ -46,12 +46,11 @@ buildscript {
4646
allprojects {
4747
repositories {
4848
google()
49-
jcenter()
49+
mavenCentral()
5050
flatDir {
5151
dirs 'libs'
5252
}
53-
maven { url 'https://maven.google.com' }
5453
// Huawei maven
55-
maven { url 'http://developer.huawei.com/repo/' }
54+
maven { url 'https://developer.huawei.com/repo/' }
5655
}
57-
}
56+
}

0 commit comments

Comments
 (0)