How to force IntelliJ IDEA to reload dependencies from build.sbt after they changed?

David B. picture David B. · Dec 6, 2013 · Viewed 57.8k times · Source

I'm using IntelliJ IDEA 13 (Community Edition) with the Scala plugin.

My initial import of an existing Scala project with a build.sbt worked fine. The library dependencies were picked up by IDEA. Additional dependencies added after the initial import were not picked up, although I had checked the auto-import option.

How can I force IDEA to reload the dependencies from build.sbt?

Answer

Alefas picture Alefas · Dec 9, 2013

You can force SBT to reload changes: Open SBT toolwindow (on the right side of IDE) and press refresh button.

If you use auto-import feature you need to save your file to force auto-refresh.