Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enforce SBT to always fetch sources for project dependencies?

Tags:

scala

sbt

Just getting started with SBT, and I would like to setup it up to always get sources for dependencies it downloads. Having to add to remember to type withSources() for every dependency declared is only mildly annoying, but the real killer is the dependencies of dependencies problem.

Anybody know a simple switch to turn this on?

like image 371
Bart Avatar asked Mar 26 '11 22:03

Bart


People also ask

Which is the correct way to add dependencies in sbt file?

If you have JAR files (unmanaged dependencies) that you want to use in your project, simply copy them to the lib folder in the root directory of your SBT project, and SBT will find them automatically.

Where are dependencies downloaded in sbt?

All new SBT versions (after 0.7. x ) by default put the downloaded JARS into the . ivy2 directory in your home directory. If you are using Linux, this is usually /home/<username>/.

What is sbt dependency management?

These tools support automatic dependency management for your project. Like in almost every build system, SBT allows you to define library dependencies which are resolved automatically, so you don't have to download and package required libraries by yourself.


1 Answers

try this https://github.com/OlegYch/sbt-sources-plugin

like image 94
OlegYch Avatar answered Sep 22 '22 04:09

OlegYch