Skip to content

Commit

Permalink
Use standalone launchers for snapshots
Browse files Browse the repository at this point in the history
So that we don't have to copy ~/.ivy2/local in the images
  • Loading branch information
alexarchambault committed Mar 27, 2019
1 parent 6bd2f68 commit a69561a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/install-kernels.sh
Expand Up @@ -9,12 +9,16 @@ for SCALA_FULL_VERSION in ${SCALA_VERSIONS}; do
# remove all dots for the kernel id
SCALA_MAJOR_VERSION_TRIMMED=$(echo ${SCALA_MAJOR_VERSION} | tr -d .)
echo Installing almond ${ALMOND_VERSION} for Scala ${SCALA_FULL_VERSION}
EXTRA_ARGS=()
if [[ ${ALMOND_VERSION} == *-SNAPSHOT ]]; then
EXTRA_ARGS+=('--standalone')
fi
coursier bootstrap \
-r jitpack \
-i user -I user:sh.almond:scala-kernel-api_${SCALA_FULL_VERSION}:${ALMOND_VERSION} \
sh.almond:scala-kernel_${SCALA_FULL_VERSION}:${ALMOND_VERSION} \
--default=true --sources \
-o almond
-o almond ${EXTRA_ARGS[@]}
./almond --install --log info --metabrowse --id scala${SCALA_MAJOR_VERSION_TRIMMED} --display-name "Scala ${SCALA_MAJOR_VERSION}"
rm -f almond
done
Expand Down

0 comments on commit a69561a

Please sign in to comment.