I am trying to collect the set of values for libraryDependencies
across all projects/scopes/etc in an sbt 1.x build.
What is the right way to accomplish this?
I am trying to collect the set of values for libraryDependencies
across all projects/scopes/etc in an sbt 1.x build.
What is the right way to accomplish this?
I came to the answer courtesy of @gpoirier
in the Gitter sbt/sbt room:
val extracted = Project.extract(state.value)
import extracted._
val allLibraryDependencies = structure.allProjectRefs.flatMap({ p =>
get(libraryDependencies in p)
}).distinct