Skip to content

Commit baa8507

Browse files
yaooqinndongjoon-hyun
authored andcommitted
[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]>
1 parent 3665506 commit baa8507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/sbt-launch-lib.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ acquire_sbt_jar () {
4343
# artifacts from internal repos only.
4444
# Ex:
4545
# DEFAULT_ARTIFACT_REPOSITORY=https://artifacts.internal.com/libs-release/
46-
URL1=${DEFAULT_ARTIFACT_REPOSITORY:-https://repo1.maven.org/maven2/}org/scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch-${SBT_VERSION}.jar
46+
URL1=${DEFAULT_ARTIFACT_REPOSITORY:-https://maven-central.storage-download.googleapis.com/maven2/}org/scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch-${SBT_VERSION}.jar
4747
JAR=build/sbt-launch-${SBT_VERSION}.jar
4848

4949
sbt_jar=$JAR

0 commit comments

Comments
 (0)