mirror of https://github.com/sbt/sbt.git
25 lines
539 B
Bash
Executable File
25 lines
539 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# grepped and updated during releases
|
|
VERSION=1.1.0-M2
|
|
ACTUAL_VERSION="${ACTUAL_VERSION:-"$VERSION"}"
|
|
CACHE_VERSION=v1
|
|
|
|
OUTPUT="${OUTPUT:-"coursier"}"
|
|
|
|
SBTPACK_LAUNCHER="$(dirname "$0")/../cli/target/pack/bin/coursier"
|
|
|
|
if [ ! -f "$SBTPACK_LAUNCHER" ]; then
|
|
sbt ++2.12.4 "project cli" pack
|
|
fi
|
|
|
|
"$SBTPACK_LAUNCHER" bootstrap \
|
|
--intransitive "io.get-coursier::coursier-cli:$ACTUAL_VERSION" \
|
|
--classifier standalone \
|
|
-J "-noverify" \
|
|
--no-default \
|
|
-r central \
|
|
-r sonatype:releases \
|
|
-f -o "$OUTPUT" \
|
|
"$@"
|