2015-11-29 23:25:37 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2018-04-23 11:38:16 +02:00
|
|
|
# grepped and updated during releases
|
2018-03-14 12:29:36 +01:00
|
|
|
VERSION=1.1.0-M1
|
2018-04-23 11:38:16 +02:00
|
|
|
ACTUAL_VERSION="${ACTUAL_VERSION:-"$VERSION"}"
|
2015-12-31 01:12:55 +01:00
|
|
|
CACHE_VERSION=v1
|
|
|
|
|
|
2018-04-23 11:38:16 +02:00
|
|
|
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
|
2018-01-22 01:12:59 +01:00
|
|
|
sbt ++2.12.4 "project cli" pack
|
2016-02-12 11:55:45 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
"$SBTPACK_LAUNCHER" bootstrap \
|
2018-04-23 11:38:16 +02:00
|
|
|
--intransitive "io.get-coursier::coursier-cli:$ACTUAL_VERSION" \
|
2016-02-24 20:42:14 +01:00
|
|
|
--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 \
|
2018-04-23 11:38:16 +02:00
|
|
|
-f -o "$OUTPUT" \
|
2016-02-27 14:20:45 +01:00
|
|
|
"$@"
|