Scala and SBT set up for the command line on OSX
- Install the Java SE SDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html (you can install multiple versions - 1.7, 1.8 ...)
- Get Homebrew from http://brew.sh/ if you haven't already and
brew update & brew install sbt
- For vim install the vim-scala plugin from https://github.com/derekwyatt/vim-scala
- Create the obligatory Hello X App.
mkdir HelloSbt & cd HelloSbt & vi Hello.scala
Add: - Create a build file.
vi build.sbt
Add: - Run
sbt
from the command line thenrun
to execute. This will install the latest version of sbt and the version of scala specified in the build file. exit
to leave the sbt console