Created
May 1, 2011 01:14
-
-
Save j5ik2o/950158 to your computer and use it in GitHub Desktop.
sbt-ideaの設定方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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