Last active
August 29, 2015 14:04
-
-
Save ms-tg/fc10cd249b39415054ea to your computer and use it in GitHub Desktop.
Workaround to launch SBT when `play` command from 2.0.8 is also used
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# WORKAROUND (2014-07-16, Marc): Avoids "No scala version specified or detected" | |
# error when Play 2.0.x and 2.3.x projects are both built by same local user. | |
if [ -e "${HOME}/.sbt/boot/other" ]; then | |
rm -rfv ~/.sbt/boot/other | |
rm -v ~/.ivy2/cache/org.scala-sbt/sbt/ivy-0.13.5.xml | |
fi | |
export SBT_OPTS="-Dsbt.repository.config=/etc/sbt/repositories -Dsbt.override.build.repos=true" | |
sbt-extras.sh -sbt-launch-repo "http://repo/nexus/content/groups/public" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment