Skip to content

Commit

Permalink
[Build] Always use the list of configured repositories in sbt-launcher (
Browse files Browse the repository at this point in the history
  • Loading branch information
vkorukanti authored Feb 3, 2025
1 parent 990c8e8 commit 43c6525
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build/sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 43c6525

Please sign in to comment.