Fix sbt-launch-lib.bash (#436)
This commit is contained in:
Родитель
8ab4278a88
Коммит
55ee94465c
|
@ -73,7 +73,12 @@ dlog () {
|
|||
|
||||
acquire_sbt_jar () {
|
||||
SBT_VERSION=`awk -F "=" '/sbt\.version/ {print $2}' ./project/build.properties`
|
||||
URL1=https://dl.bintray.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar
|
||||
# DEFAULT_ARTIFACT_REPOSITORY env variable can be used to only fetch
|
||||
# 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
|
||||
|
||||
JAR=build/sbt-launch-${SBT_VERSION}.jar
|
||||
|
||||
sbt_jar=$JAR
|
||||
|
@ -91,13 +96,13 @@ acquire_sbt_jar () {
|
|||
wget --quiet ${URL1} -O "${JAR_DL}" &&\
|
||||
mv "${JAR_DL}" "${JAR}"
|
||||
else
|
||||
printf "You do not have curl or wget installed, please install sbt manually from http://www.scala-sbt.org/\n"
|
||||
printf "You do not have curl or wget installed, please install sbt manually from https://www.scala-sbt.org/\n"
|
||||
exit -1
|
||||
fi
|
||||
fi
|
||||
if [ ! -f "${JAR}" ]; then
|
||||
# We failed to download
|
||||
printf "Our attempt to download sbt locally to ${JAR} failed. Please install sbt manually from http://www.scala-sbt.org/\n"
|
||||
printf "Our attempt to download sbt locally to ${JAR} failed. Please install sbt manually from https://www.scala-sbt.org/\n"
|
||||
exit -1
|
||||
fi
|
||||
printf "Launching sbt from ${JAR}\n"
|
||||
|
|
Загрузка…
Ссылка в новой задаче