From 43c652595352bcf8263d1db98831c38c5d68dff5 Mon Sep 17 00:00:00 2001 From: Venki Korukanti Date: Mon, 3 Feb 2025 09:05:35 -0800 Subject: [PATCH] [Build] Always use the list of configured repositories in sbt-launcher (#4111) --- build/sbt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/build/sbt b/build/sbt index 044a2929bde..0438b99231b 100755 --- a/build/sbt +++ b/build/sbt @@ -66,11 +66,9 @@ realpath () { ) } -if [[ "$JENKINS_URL" != "" ]]; then - # Make Jenkins use Google Mirror first as Maven Central may ban us - SBT_REPOSITORIES_CONFIG="$(dirname "$(realpath "$0")")/sbt-config/repositories" - export SBT_OPTS="-Dsbt.override.build.repos=true -Dsbt.repository.config=$SBT_REPOSITORIES_CONFIG" -fi +# Make Jenkins use Google Mirror first as Maven Central may ban us +SBT_REPOSITORIES_CONFIG="$(dirname "$(realpath "$0")")/sbt-config/repositories" +export SBT_OPTS="-Dsbt.override.build.repos=true -Dsbt.repository.config=$SBT_REPOSITORIES_CONFIG" . "$(dirname "$(realpath "$0")")"/sbt-launch-lib.bash