Search code examples
eclipsescalasbtscala-ide

Adding and removing dependencies with SBT and Scala IDE


I've been experimenting with SBT and the Scala IDE (Eclipse) and I'm wondering - what's the standard workflow for adding and removing dependencies from your build.sbt file where the project's referenced libraries will be updated in Eclipse?

Are there any current plugins that are required to use sbt with eclipse when adding / removing dependencies?


Solution

  • The sbteclipse plugin will do it. The key is that whenever you change your dependencies you need to re-run the command to create the Eclipse files. I use:

    eclipse same-targets
    

    Then you need to right-click on the project in Eclipse and choose Refresh.