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/127.0.0.1%3A8081/artifactory/scala-ci-virtual/org/scala-lang/scala-library/2.13.5/scala-library-2.13.5.jar), Attributed(/Users/tisue/Library/Caches/Coursier/v1/http/127.0.0.1%3A8081/artifactory/scala-ci-virtual/org/scalacheck/scalacheck_2.13/1.15.3/scalacheck_2.13-1.15.3.jar), Attributed(/Users/tisue/Library/Caches/Coursier/v1/http/127.0.0.1%3A8081/artifactory/scala-ci-virtual/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar))

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

2 Likes

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.

2 Likes

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

1 Like