Skip to content

Instantly share code, notes, and snippets.

@j5ik2o
Created May 1, 2011 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j5ik2o/950158 to your computer and use it in GitHub Desktop.
Save j5ik2o/950158 to your computer and use it in GitHub Desktop.
sbt-ideaの設定方法
// 1. $PROJECT_ROOT/project/build/MyProject.scalaを作る。IdeaProjectをミックスインする。
import sbt._
class MyProject(info: ProjectInfo) extends DefaultProject(info) with IdeaProject{
}
// 2. $PROJECT_ROOT/project/plugins/Plugins.scalaを以下のように作る。
import sbt._
class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
val sbtIdeaRepo = "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"
val sbtIdea = "com.github.mpeltonen" % "sbt-idea-plugin" % "0.4.0"
}
$ sbt update
$ sbt idea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment