Skip to content

Commit 1c37688

Browse files
committed
Replace mavenCentral() with Maven Central mirror URL for dependency resolution in Gradle build scripts
1 parent 53cae68 commit 1c37688

20 files changed

Lines changed: 76 additions & 35 deletions

File tree

java/ql/integration-tests/java/android-8-sample/settings.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ pluginManagement {
1414
repositories {
1515
gradlePluginPortal()
1616
google()
17-
mavenCentral()
17+
maven {
18+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
19+
}
1820
}
1921
}
2022
dependencyResolutionManagement {
@@ -33,7 +35,9 @@ dependencyResolutionManagement {
3335
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
3436
repositories {
3537
google()
36-
mavenCentral()
38+
maven {
39+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
40+
}
3741
}
3842
}
3943
rootProject.name = "Android Sample"

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ pluginManagement {
1414
repositories {
1515
gradlePluginPortal()
1616
google()
17-
mavenCentral()
17+
maven {
18+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
19+
}
1820
}
1921
}
2022
dependencyResolutionManagement {
@@ -33,7 +35,9 @@ dependencyResolutionManagement {
3335
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
3436
repositories {
3537
google()
36-
mavenCentral()
38+
maven {
39+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
40+
}
3741
}
3842
}
3943
rootProject.name = "Android Sample"

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ pluginManagement {
1414
repositories {
1515
gradlePluginPortal()
1616
google()
17-
mavenCentral()
17+
maven {
18+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
19+
}
1820
}
1921
}
2022
dependencyResolutionManagement {
@@ -33,7 +35,9 @@ dependencyResolutionManagement {
3335
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
3436
repositories {
3537
google()
36-
mavenCentral()
38+
maven {
39+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
40+
}
3741
}
3842
}
3943
rootProject.name = "Android Sample"

java/ql/integration-tests/java/android-sample-no-wrapper/settings.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ pluginManagement {
1414
repositories {
1515
gradlePluginPortal()
1616
google()
17-
mavenCentral()
17+
maven {
18+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
19+
}
1820
}
1921
}
2022
dependencyResolutionManagement {
@@ -33,7 +35,9 @@ dependencyResolutionManagement {
3335
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
3436
repositories {
3537
google()
36-
mavenCentral()
38+
maven {
39+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
40+
}
3741
}
3842
}
3943
rootProject.name = "Android Sample"

java/ql/integration-tests/java/android-sample/settings.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ pluginManagement {
1414
repositories {
1515
gradlePluginPortal()
1616
google()
17-
mavenCentral()
17+
maven {
18+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
19+
}
1820
}
1921
}
2022
dependencyResolutionManagement {
@@ -33,7 +35,9 @@ dependencyResolutionManagement {
3335
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
3436
repositories {
3537
google()
36-
mavenCentral()
38+
maven {
39+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
40+
}
3741
}
3842
}
3943
rootProject.name = "Android Sample"

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
apply plugin: 'java-library'
99

1010
repositories {
11-
mavenCentral()
11+
maven {
12+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
13+
}
1214
}
1315

1416
dependencies {
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
https://repo.maven.apache.org/maven2/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar
2-
https://repo.maven.apache.org/maven2/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar
3-
https://repo.maven.apache.org/maven2/org/junit/jupiter/junit-jupiter-api/5.12.1/junit-jupiter-api-5.12.1.jar
4-
https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-commons/1.12.1/junit-platform-commons-1.12.1.jar
5-
https://repo.maven.apache.org/maven2/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar
1+
https://maven-central.storage-download.googleapis.com/maven2/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar
2+
https://maven-central.storage-download.googleapis.com/maven2/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar
3+
https://maven-central.storage-download.googleapis.com/maven2/org/junit/jupiter/junit-jupiter-api/5.12.1/junit-jupiter-api-5.12.1.jar
4+
https://maven-central.storage-download.googleapis.com/maven2/org/junit/platform/junit-platform-commons/1.12.1/junit-platform-commons-1.12.1.jar
5+
https://maven-central.storage-download.googleapis.com/maven2/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
apply plugin: 'java-library'
99

1010
repositories {
11-
mavenCentral()
11+
maven {
12+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
13+
}
1214
}
1315

1416
dependencies {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
https://repo.maven.apache.org/maven2/joda-time/joda-time/2.12.7/joda-time-2.12.7-no-tzdb.jar
2-
https://repo.maven.apache.org/maven2/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar
1+
https://maven-central.storage-download.googleapis.com/maven2/joda-time/joda-time/2.12.7/joda-time-2.12.7-no-tzdb.jar
2+
https://maven-central.storage-download.googleapis.com/maven2/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
apply plugin: 'java-library'
99

1010
repositories {
11-
mavenCentral()
11+
maven {
12+
url = 'https://maven-central.storage-download.googleapis.com/maven2/'
13+
}
1214
}
1315

1416
dependencies {

0 commit comments

Comments
 (0)