3

I'm trying to use this example: https://github.com/spray/spray-template for a Spray project, however I can't figure out how to point Intellij at the dependencies downloaded via SBT.

Any suggestions?

binarygiant
  • 6,362
  • 10
  • 50
  • 73

3 Answers3

4

If you're using IntelliJ version 13, you need only the Scala plug-in (which has built-in SBT support); just open the project by selecting the build.sbt file.

Jesper
  • 202,709
  • 46
  • 318
  • 350
  • I have had no luck with the built in sbt support so far: the gen-idea was the only way. I will try again though with the latest IJ version ( presently 13.1.2). – WestCoastProjects May 08 '14 at 06:24
1

Use this SBT plugin to generate Intellij IDEA project files: https://github.com/mpeltonen/sbt-idea

Rado Buransky
  • 3,252
  • 18
  • 25
1

Add SBT plugin for creating IntelliJ IDEA projects in your ~/.sbt/0.xx/plugins/build.sbt or PROJECT_DIR/project/plugins.sbt. Use gen-idea command to create an IntelliJ project and open the project in IntelliJ. That should be it.

Sudheer Aedama
  • 2,116
  • 2
  • 21
  • 39