Search code examples
scalasbtsbt-idea

Create idea project using gen-idea


I'm new to the sbt and scala. I've installed sbt and sbt-idea. How can I create an idea project now ?


Solution

  • I personally got it work fairly painlessly by following the documentation: add the following lines to your project's ./project/plugins.sbt:

    resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
    
    addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0-SNAPSHOT")
    

    Reload sbt, the gen-idea command should now be available.