Skip to content

Instantly share code, notes, and snippets.

@ms-tg
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ms-tg/fc10cd249b39415054ea to your computer and use it in GitHub Desktop.
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
#!/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