Skip to content

Commit 6882130

Browse files
committed
Replace deprecated jcenter() with Maven Central mirror URL for dependency resolution in Gradle build scripts
1 parent 1c37688 commit 6882130

13 files changed

Lines changed: 52 additions & 36 deletions

File tree

java/ql/integration-tests/java/android-sample-old-style-kotlin-build-script-no-wrapper/build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ buildscript {
1313

1414
repositories {
1515
google()
16-
jcenter()
16+
maven {
17+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
18+
}
1719
}
1820

1921
/**
@@ -39,6 +41,8 @@ buildscript {
3941
allprojects {
4042
repositories {
4143
google()
42-
jcenter()
44+
maven {
45+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
46+
}
4347
}
4448
}

java/ql/integration-tests/java/android-sample-old-style-kotlin-build-script/build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ buildscript {
1313

1414
repositories {
1515
google()
16-
jcenter()
16+
maven {
17+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
18+
}
1719
}
1820

1921
/**
@@ -39,6 +41,8 @@ buildscript {
3941
allprojects {
4042
repositories {
4143
google()
42-
jcenter()
44+
maven {
45+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
46+
}
4347
}
4448
}

java/ql/integration-tests/java/android-sample-old-style-no-wrapper/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ buildscript {
1313

1414
repositories {
1515
google()
16-
jcenter()
16+
maven {
17+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
18+
}
1719
}
1820

1921
/**
@@ -39,6 +41,8 @@ buildscript {
3941
allprojects {
4042
repositories {
4143
google()
42-
jcenter()
44+
maven {
45+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
46+
}
4347
}
4448
}

java/ql/integration-tests/java/android-sample-old-style/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ buildscript {
1313

1414
repositories {
1515
google()
16-
jcenter()
16+
maven {
17+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
18+
}
1719
}
1820

1921
/**
@@ -32,13 +34,15 @@ buildscript {
3234
* dependencies used by all modules in your project, such as third-party plugins
3335
* or libraries. However, you should configure module-specific dependencies in
3436
* each module-level build.gradle file. For new projects, Android Studio
35-
* includes JCenter and Google's Maven repository by default, but it does not
37+
* includes Maven Central and Google's Maven repository by default, but it does not
3638
* configure any dependencies (unless you select a template that requires some).
3739
*/
3840

3941
allprojects {
4042
repositories {
4143
google()
42-
jcenter()
44+
maven {
45+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
46+
}
4347
}
4448
}

java/ql/integration-tests/java/buildless-gradle-timeout/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ apply plugin: 'java'
1212

1313
// In this section you declare where to find the dependencies of your project
1414
repositories {
15-
// Use 'jcenter' for resolving your dependencies.
16-
// You can declare any Maven/Ivy/file repository here.
17-
jcenter()
15+
maven {
16+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
17+
}
1818
}
1919

2020
// In this section you declare the dependencies for your production and test code

java/ql/integration-tests/java/buildless-sibling-projects/gradle-sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ apply plugin: 'java'
1212

1313
// In this section you declare where to find the dependencies of your project
1414
repositories {
15-
// Use 'jcenter' for resolving your dependencies.
16-
// You can declare any Maven/Ivy/file repository here.
17-
jcenter()
15+
maven {
16+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
17+
}
1818
}
1919

2020
// In this section you declare the dependencies for your production and test code

java/ql/integration-tests/java/buildless-sibling-projects/gradle-sample2/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ apply plugin: 'java'
1212

1313
// In this section you declare where to find the dependencies of your project
1414
repositories {
15-
// Use 'jcenter' for resolving your dependencies.
16-
// You can declare any Maven/Ivy/file repository here.
17-
jcenter()
15+
maven {
16+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
17+
}
1818
}
1919

2020
// In this section you declare the dependencies for your production and test code

java/ql/integration-tests/java/diagnostics/java-version-too-old/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ apply plugin: 'java'
1212

1313
// In this section you declare where to find the dependencies of your project
1414
repositories {
15-
// Use 'jcenter' for resolving your dependencies.
16-
// You can declare any Maven/Ivy/file repository here.
17-
jcenter()
15+
maven {
16+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
17+
}
1818
}
1919

2020
// In this section you declare the dependencies for your production and test code

java/ql/integration-tests/java/diagnostics/no-gradle-wrapper/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ apply plugin: 'java'
1212

1313
// In this section you declare where to find the dependencies of your project
1414
repositories {
15-
// Use 'jcenter' for resolving your dependencies.
16-
// You can declare any Maven/Ivy/file repository here.
17-
jcenter()
15+
maven {
16+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
17+
}
1818
}
1919

2020
// In this section you declare the dependencies for your production and test code

java/ql/integration-tests/java/gradle-sample-without-wrapper-or-gradle-buildless/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ apply plugin: 'java'
1212

1313
// In this section you declare where to find the dependencies of your project
1414
repositories {
15-
// Use 'jcenter' for resolving your dependencies.
16-
// You can declare any Maven/Ivy/file repository here.
17-
jcenter()
15+
maven {
16+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
17+
}
1818
}
1919

2020
// In this section you declare the dependencies for your production and test code

0 commit comments

Comments
 (0)