Published on

Creating an IntelliJ IDEA Project from sbt

Authors

Reference: https://github.com/mpeltonen/sbt-idea

Environment:

  • Ubuntu 12.04
  • sbt: 0.11.3
  • IntelliJ IDEA: 11.3

First create a folder for the project. The folder name becomes the project name.

mkdirsbtideamkdir sbt-idea cd sbt-idea mkdirprojectmkdir project gvim project/build.sbt

Add the following line to build.sbt and save it.

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")

Run the command below from a terminal to create the IDEA project files.

$ sbt gen-IDEA

After that, just open the folder in IDEA.