1

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?

Brian Kent
  • 3,754
  • 1
  • 26
  • 31

1 Answers1

1

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
Brian Kent
  • 3,754
  • 1
  • 26
  • 31