SBT, dependencies, classpath and editors

I recently updated my sbt setup to version 0.11. As you know, the new SBT uses the .ivy2 folder to store / cache all extracted jar files. I am using IntelliJ and I would like to know what is the recommended way to import dependencies into the classpath class.

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

+4
source share
2 answers

I assume that you are using the SBT plugin . According to the instructions on the linked page:

After each change in 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 the Usage section on github ). IntelliJ (11 RC) will ask you to restart the project, which is usually pretty fast. Then links to your SBT dependencies will be available.

+6
source

You can try the IvyIDEA plugin .

0
source

All Articles