Skip to content

Instantly share code, notes, and snippets.

@ms-tg
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save ms-tg/fc10cd249b39415054ea to your computer and use it in GitHub Desktop.

Select an option

Save ms-tg/fc10cd249b39415054ea to your computer and use it in GitHub Desktop.

Revisions

  1. ms-tg revised this gist Jul 17, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sbt-tg.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    # 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 [ -f "${HOME}/.sbt/boot/other" ]; then
    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
  2. ms-tg created this gist Jul 16, 2014.
    11 changes: 11 additions & 0 deletions sbt-tg.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/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 [ -f "${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" "$@"