Skip to content
[dk]

~/blog/create-intellij-idea-project-sbt.md

Creating an IntelliJ IDEA Project from sbt

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.

$ mkdir sbt-idea
$ cd sbt-idea
$ mkdir 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.

$ related --same-tags