Merge pull request #6462 from eed3si9n/wip/sbt-launch

Support alternative sbt-launch repo
This commit is contained in:
eugene yokota 2021-04-24 17:35:23 -04:00 committed by GitHub
commit 7089ea08c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

6
sbt
View File

@ -98,7 +98,11 @@ jar_file () {
}
jar_url () {
echo "https://repo1.maven.org/maven2/org/scala-sbt/sbt-launch/$1/sbt-launch-$1.jar"
local repo_base="$SBT_LAUNCH_REPO"
if [[ $repo_base == "" ]]; then
repo_base="https://repo1.maven.org/maven2"
fi
echo "$repo_base/org/scala-sbt/sbt-launch/$1/sbt-launch-$1.jar"
}
download_url () {