How to Setup Your First Scala Project in IntelliJ


I stumbled around for quite a while trying to create a basic Scala project in IntelliJ. Here are the steps so you don’t have to waste nearly as much time as I did. I’m also documenting this because I know I’m going to forget it myself.

My environment:

  • Mac OS X Mavericks 10.9
  • IntelliJ IDEA 13.0

My steps:

  • install Scala with homebrew brew install scala --with-docs
    • this installed Scala version 2.10.3 for me
  • brew install sbt (I’m using 0.13.0)
  • mkdir ~/.sbt/0.13/plugins
  • echo 'addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2")' > ~/.sbt/0.13/plugins/build.sbt
  • install the scala plugin for IntelliJ
  • git clone
  • import project; choose “import project from external model” and select “Use auto-import”
  • make sure it compiles and runs