Is there a settings key in SBT to show all local resolvers?

I am trying to find out the local dependency paths for a particular library. I tried searching in .iv2 and .m2. But the library is not there. Surprisingly, SBT does not fetch this from network during compilation. So, it must be reading from somewhere else in the local file system.
I tried doing show resolvers but that just shows jcenter and a few other bintray resolvers.

try show dependencyClasspath

so for example in one project I saw:

[info] 	List(Attributed(/Users/tisue/scala-parallel-collections/core/target/scala-2.13/classes), Attributed(/Users/tisue/Library/Caches/Coursier/v1/http/, Attributed(/Users/tisue/Library/Caches/Coursier/v1/http/, Attributed(/Users/tisue/Library/Caches/Coursier/v1/http/

so we see that with this particular sbt version (1.5.0-RC2), running on MacOS, after initial download the JARs are cached in ~/Library/Caches/Coursier


Try show dependencyClasspath. That will give you a list of paths of all dependencies. If you know where the particular jar comes from, you probably know which resolver it was.


that worked thanks:). I wish I could mark an answer as resolved.

1 Like