sbt/scripts/generate-launcher.sh

24 lines
554 B
Bash
Raw Normal View History

2015-11-29 23:25:37 +01:00
#!/bin/bash
2017-06-25 15:13:46 +02:00
VERSION=1.0.0-RC6
2015-12-31 01:12:55 +01:00
CACHE_VERSION=v1
2016-02-12 11:55:45 +01:00
SBTPACK_LAUNCHER="$(dirname "$0")/../cli/target/pack/bin/coursier"
if [ ! -f "$SBTPACK_LAUNCHER" ]; then
2017-04-26 14:11:38 +02:00
sbt ++2.11.11 cli/pack
2016-02-12 11:55:45 +01:00
fi
"$SBTPACK_LAUNCHER" bootstrap \
2016-08-06 22:28:51 +02:00
--intransitive io.get-coursier::coursier-cli:$VERSION \
--classifier standalone \
-J "-noverify" \
2016-01-07 20:14:11 +01:00
--no-default \
-r central \
2016-02-12 11:55:45 +01:00
-r sonatype:releases \
2016-04-19 21:09:16 +02:00
-d "\${user.home}/.coursier/bootstrap/$VERSION" \
2015-11-29 23:25:37 +01:00
-f -o coursier \
-M coursier.cli.Coursier \
2016-04-19 21:09:16 +02:00
-D coursier.cache="\${user.home}/.coursier/cache/$CACHE_VERSION" \
"$@"