Skip to content
retronym edited this page Jun 25, 2011 · 14 revisions

idea-sbt-plugin -- Integrates Intellij IDEA with Simple Build Tool (SBT) to build Scala projects easily and quickly.

SCREENSHOTS

Basic Settings

Configure the location of the SBT Launcher and the VM Parameters under Settings -> SBT

Interactive SBT Console

You can use SBT interactively, including running watched command like ~compile. Currently there is no tab completion or console history. You can use the built in history commands of SBT, such as !! to run the last command.

Per Project Configuration

You can use a different SBT Launcher JAR for a project. This is useful if you are migrating projects from SBT 0.7.7 to SBT 0.10.x.

SBT_HOME Path Variable

If you check the .idea folder into source control, it is recommended to use a Path Variable to avoid a system dependendent path from being saved.

Configure this under Settings -> Path Variable

Notice that .idea/compiler.xml contains $SBT_HOME, rather than the hard coded path.

Run Configuration Settings

You can replace the built in Make from IntelliJ with SBT by adding a "Before Launch" action to Run Configurations. It is useful to do this for the Default Run Configuration.

For example, here we set the default Specs2 Run Configuration to build with SBT:

Notification of Build Failure

The SBT Console will pop up showing hyperlinked errors if the compile fails during a "Before Launch" build.

Run in Current Module

If this option is selected, the build is run in the active module for the Run Configuration.

Clone this wiki locally