sbt/scripts/generate-launcher.sh

25 lines
539 B
Bash
Raw Normal View History

2015-11-29 23:25:37 +01:00
#!/bin/bash
# grepped and updated during releases
2018-04-28 15:56:42 +02:00
VERSION=1.1.0-M2
ACTUAL_VERSION="${ACTUAL_VERSION:-"$VERSION"}"
2015-12-31 01:12:55 +01:00
CACHE_VERSION=v1
OUTPUT="${OUTPUT:-"coursier"}"
2016-02-12 11:55:45 +01:00
SBTPACK_LAUNCHER="$(dirname "$0")/../cli/target/pack/bin/coursier"
if [ ! -f "$SBTPACK_LAUNCHER" ]; then
sbt ++2.12.4 "project cli" pack
2016-02-12 11:55:45 +01:00
fi
"$SBTPACK_LAUNCHER" bootstrap \
--intransitive "io.get-coursier::coursier-cli:$ACTUAL_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 \
-f -o "$OUTPUT" \
"$@"