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

dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new baa850762e2d [SPARK-55710][BUILD] Use Google Mirror of Maven Central 
for SBT bootstrap
baa850762e2d is described below

commit baa850762e2da619a9515f985f536d27895ec1a3
Author: Kent Yao <[email protected]>
AuthorDate: Thu Feb 26 09:03:04 2026 -0800

    [SPARK-55710][BUILD] Use Google Mirror of Maven Central for SBT bootstrap
    
    ### What changes were proposed in this pull request?
    
    Change the default SBT bootstrap repository from Maven Central 
(`repo1.maven.org`) to Google's Maven Central mirror 
(`maven-central.storage-download.googleapis.com`) for downloading the 
`sbt-launch` jar.
    
    ### Why are the changes needed?
    
    The rest of the SBT build already uses the Google mirror as the primary 
resolver, as `project/SparkBuild.scala`. The bootstrap script 
(`build/sbt-launch-lib.bash`) was the only place still defaulting to Maven 
Central. This makes it consistent and avoids flaky Maven Central connections 
during the initial `sbt-launch` jar download.
    
    The `DEFAULT_ARTIFACT_REPOSITORY` environment variable can still be used to 
override this.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manually tested by removing the cached `sbt-launch-1.12.4.jar` and 
verifying the bootstrap successfully downloads from the Google mirror with 
matching checksum.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Yes, GitHub Copilot CLI was used.
    
    Closes #54508 from yaooqinn/SPARK-55710.
    
    Authored-by: Kent Yao <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 build/sbt-launch-lib.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/sbt-launch-lib.bash b/build/sbt-launch-lib.bash
index 01ba6b929f92..713f88e08299 100755
--- a/build/sbt-launch-lib.bash
+++ b/build/sbt-launch-lib.bash
@@ -43,7 +43,7 @@ acquire_sbt_jar () {
   # artifacts from internal repos only.
   # Ex:
   #   DEFAULT_ARTIFACT_REPOSITORY=https://artifacts.internal.com/libs-release/
-  
URL1=${DEFAULT_ARTIFACT_REPOSITORY:-https://repo1.maven.org/maven2/}org/scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch-${SBT_VERSION}.jar
+  
URL1=${DEFAULT_ARTIFACT_REPOSITORY:-https://maven-central.storage-download.googleapis.com/maven2/}org/scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch-${SBT_VERSION}.jar
   JAR=build/sbt-launch-${SBT_VERSION}.jar
 
   sbt_jar=$JAR


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

Reply via email to