sbt/scripts/generate-launcher.sh

24 lines
554 B
Bash
Executable File

#!/bin/bash
VERSION=1.0.0-RC6
CACHE_VERSION=v1
SBTPACK_LAUNCHER="$(dirname "$0")/../cli/target/pack/bin/coursier"
if [ ! -f "$SBTPACK_LAUNCHER" ]; then
sbt ++2.11.11 cli/pack
fi
"$SBTPACK_LAUNCHER" bootstrap \
--intransitive io.get-coursier::coursier-cli:$VERSION \
--classifier standalone \
-J "-noverify" \
--no-default \
-r central \
-r sonatype:releases \
-d "\${user.home}/.coursier/bootstrap/$VERSION" \
-f -o coursier \
-M coursier.cli.Coursier \
-D coursier.cache="\${user.home}/.coursier/cache/$CACHE_VERSION" \
"$@"