Skip to content

Commit 64c4ab6

Browse files
committed
[SPARK-52478] Use GCS Maven Central mirror as the primary repository
### What changes were proposed in this pull request? This PR aims to use GCS `Maven Central` mirror as the primary repository. ### Why are the changes needed? Since Apache Spark 3.0.0, Apache Spark community has been taking advantage of GCS `Maven Central` to stabilize and speed up CIs. We need to follow this practice in Apache Spark K8s Operator repository. - apache/spark#26793 In addition, this PR cleaned up the following which is a leftover of Apache Spark 4.0.0-SNAPSHOT usage before the official 4.0.0 release. https://github.com/apache/spark-kubernetes-operator/blob/9705573c9beebc0607104ae288c3e443d7494fd4/build.gradle#L58-L60 ### Does this PR introduce _any_ user-facing change? No behavior change. This is a build-only dev-side change. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#246 from dongjoon-hyun/SPARK-52478. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 9705573 commit 64c4ab6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ subprojects {
5454
}
5555

5656
repositories {
57-
mavenCentral()
57+
// Google Mirror of Maven Central, placed first so that it's used instead of flaky Maven Central.
58+
// See https://storage-download.googleapis.com/maven-central/index.html
5859
maven {
59-
url = "https://repository.apache.org/content/repositories/snapshots/"
60+
name = "GCS Maven Central mirror"
61+
url = uri("https://maven-central.storage-download.googleapis.com/maven2/")
6062
}
63+
mavenCentral()
6164
}
6265

6366
apply plugin: 'checkstyle'

0 commit comments

Comments
 (0)