Download Sources and Docs with SBT

Working on a Scala project and figuring out how to get SBT to download sources and docs for all dependencies?

It took a while to figure out but this is what works for SBT 0.10 or higher:

  sbt update-classifiers

For my Scala projects, I return to using an IDE — IntelliJ IDEA Community (Ultimate is a bit bloated and slow for my liking). The SBT-Idea project links dependencies, sources and docs to your IDEA project with this command:

  sbt gen-idea

Make sure you’ve included SBT Idea as a plugin: https://github.com/mpeltonen/sbt-idea

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>