This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 64c4ab6  [SPARK-52478] Use GCS `Maven Central` mirror as the primary 
repository
64c4ab6 is described below

commit 64c4ab6d0011faceb466be84858d0ae1fdb5a8b3
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sat Jun 14 12:15:19 2025 -0700

    [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 #246 from dongjoon-hyun/SPARK-52478.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 build.gradle | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 8c5b379..df0b85c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -54,10 +54,13 @@ subprojects {
   }
 
   repositories {
-    mavenCentral()
+    // Google Mirror of Maven Central, placed first so that it's used instead 
of flaky Maven Central.
+    // See https://storage-download.googleapis.com/maven-central/index.html
     maven {
-      url = "https://repository.apache.org/content/repositories/snapshots/";
+      name = "GCS Maven Central mirror"
+      url = 
uri("https://maven-central.storage-download.googleapis.com/maven2/";)
     }
+    mavenCentral()
   }
 
   apply plugin: 'checkstyle'


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to