A "simple-build-tool":http://code.google.com/p/simple-build-tool/ plugin to create "IntelliJ IDEA":http://www.jetbrains.com/idea/free_java_ide.html project files for sbt project

h2. Status

Early experimental version, not tested much and guaranteed to contain bugs and lots of room for improvement. You may or may not find it useful :)

h2. Requirements

Requires sbt version 0.7.x (not compatible with 0.5.x series).

h2. Usage

Check out sbt's "plugin documentation":http://code.google.com/p/simple-build-tool/wiki/SbtPlugins.

1. In your project/plugins/Plugins.scala:

<pre>
import sbt._
class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
  val repo = "GH-pages repo" at "http://mpeltonen.github.com/maven/"
  val idea = "com.github.mpeltonen" % "sbt-idea-plugin" % "0.1-SNAPSHOT"
}
</pre>

2. In your project definition file:

<pre>
import sbt._
class MyProject(info: ProjectInfo) extends ParentProject(info) with IdeaPlugin {
  lazy val subProject = project("subproject", "subproject", new DefaultProject(_) with IdeaPlugin)              
   // ...
}
</pre>

i.e. plugin trait must be mixed into both parent project and subprojects if you have multimodule build.

3. Run

<pre>
 sbt idea
</pre>

4. Import created <project.name>.ipr file into idea


A "simple-build-tool":http://code.google.com/p/simple-build-tool/ plugin to create "IntelliJ IDEA":http://www.jetbrains.com/idea/free_java_ide.html project files for sbt project

h2. Requirements

Requires sbt version 0.7.x (not compatible with 0.5.x series).

h2. Usage

Check out sbt's "plugin documentation":http://code.google.com/p/simple-build-tool/wiki/SbtPlugins.

1. In your project/plugins/Plugins.scala:

<pre>
import sbt._
class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
  val repo = "GH-pages repo" at "http://mpeltonen.github.com/maven/"
  val idea = "com.github.mpeltonen" % "sbt-idea-plugin" % "0.1-SNAPSHOT"
}
</pre>

2. In your project definition file:

<pre>
import sbt._
class MyProject(info: ProjectInfo) extends ParentProject(info) with IdeaPlugin {
  lazy val subProject = project("subproject", "subproject", new DefaultProject(_) with IdeaPlugin)              
   // ...
}
</pre>

i.e. plugin trait must be mixed into both parent project and subprojects if you have multimodule build.

3. Run

<pre>
 sbt idea
</pre>

4. Import created <project.name>.ipr file into idea

