Homebrew: Install the Typesafe Stack

Old news: New machine -> new setup
Exciting alternatives: Homebrew -> “Typesafe Stack”

brew install scala sbt maven giter8

Homebrew is a package manager that keeps things tidy under the /usr/local/ directory, which is what we are using here to have Scala and friends installed. giter8 is a template Github archetype-maven-like command line tool that grows up to be the defacto way of bootstrapping a Scala-related project.

Setup SBT in Mac OS X

Simple Build Tool (SBT) is a building tool for Scala with a Maven feel into it.

First download the latest sbt-launch.jar, put the jar in the /usr/local/bin dir:

$sudo curl http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/CURRENT_VERSION/sbt-launch.jar --O sbt-launch-CURRENT_VERSION.jar
$sudo cp sbt-launch-CURRENT_VERSION.jar /usr/local/bin

Final step is to create file with the command to load up the jar:

$sudo mkdir /usr/local/bin/sbt
$sudo chmod +x /usr/local/bin/sbt 
$sudo vim /usr/local/bin/sbt

Including the following command:

java -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512m -Xmx512M -Xss2M -jar `dirname $0`/sbt-launch-CURRENT_VERSION.jar "$@"