SBT, dependencies, classpath and editors
Asked Answered
R

2

4

I recently updated my sbt setup to version 0.11. As you may know, new SBT uses .ivy2 folder to store/cache all the retrieved jar files. I am using IntelliJ and I would like to know what is the recommended way of importing dependencies to the editor's classpath.

One option is to manually visit .ivy2 folder and select the dependencies. Is there a better/easier way to doing this?

Rincon answered 29/10, 2011 at 7:40 Comment(0)
K
6

I presume you use the SBT-plugin. According to the instructions on the linked page:

After each change to your dependencies, run gen-idea in the SBT Console. When prompted, reload the project.

I usually run gen-idea no-classifiers no-sbt-classifiers (see under "Usage" on github). IntelliJ (11 RC) will then ask you to reload the project, which is usually quite fast. Then the references to your SBT dependencies will be available.

Knapweed answered 2/12, 2011 at 17:24 Comment(1)
More details here: #4250818 and github.com/mpeltonen/sbt-ideaRincon
L
0

You can try IvyIDEA plug-in.

Lutherlutheran answered 29/10, 2011 at 10:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.