I'm new to SBT and am unsure how to get a project started. Can someone point me to a beginner's guide to creating a Hello World type project, or give me some clues?
My preferred IDE is IDEA. I have run sbt-idea
according to the instruction on the IDEA Plugins page. At the moment I'm a bit confused because
- there are no source folders created - where / how am I supposed to create them and how will SBT know where to look?
- why is it trying to use Scala 2.8.1, when I have already put
scalaVersion := "2.9.0"
in thebuild.sbt
file? This means IDEA doesn't recognizeobject HelloWorld extends App {}
. - the instructions on the plugins page above suggest changing the Before Launch options of "a Run Configuration (including the Default Run Configuration)". There are 13 different default configurations for different things listed - which one to change? Should I be creating a new one? Are these default configurations just for this project or will it adversely affect all my other projects that don't use SBT?
Thanks.
build.sbt
file in step 5 into~/.sbt/plugins/
as the wiki suggests since then you don't have to do it for every project... on Windows you have to create this directory yourself in `Users\yourname\`, using the command line. Anyway, now I have set up the folders as per the Directory Layout in the sbt wiki, it works fine! – Mocha