Aavik
Aavik

Reputation: 1037

sbt gen-idea fails : trying to import a sbt-managed project TopNotch from github

I have done git clone on the TopNotch project from github and wanted to import this sbt project to Intellij.

I am under the root directory of TopNotch and have sbt gen-idea, it failed with "Not a valid command" Link to TopNotch: https://github.com/blackrock/TopNotch

So, I have added the below lines under project/plugins.sbt but still fails with

"bt.ResolveException: unresolved dependency: com.github.mpeltonen#sbt-idea;1.7.0-SNAPSHOT: not found"

Lines added:(also tried with 1.5.0-SNAPSHOT"

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

I have SBT-0.13.11 installed but the build has 0.13.8 Scala - 2.11.8 Java 1.8 Intellij - 2016.1.3

Please suggest how to import the project.

Thank you.

Upvotes: 0

Views: 704

Answers (1)

Sergey
Sergey

Reputation: 2900

sbt-idea plugin had been unsupported since it was included into official Scala plugin about two years ago, and project files generated by outdated version of the plugin are not compatible with IntelliJ IDEA starting with version 14, if I recall correctly.

The common approach is to install Scala plugin from IDEA (Settings > Plugins > Install JetBrains Plugin > search for Scala) and import your SBT project using the standard Open... dialog afterwards.

Upvotes: 1

Related Questions