What does sbt have that maven does not?
- Continuous compilation, that is files are compiled and tested upon file change. Just run any target with ~, eg
sbt ~test
- Sheer speed. The full test execution takes about half the time compared to maven.
test-quick
- An sbt target that only runs tests that either a) failed in the previous run b) have not run before or c) Have recompiled dependencies.
How?
- Install sbt, eg
brew install sbt
or http://www.scala-sbt.org/release/docs/Getting-Started/Setup.html - Copy the build.sbt (from below) and put it next to your pom.xml in the project root.
- Create a directory called 'project' in your project root. Put the plugins.sbt file (below) in it.
- Run
sbt