WestCoastProjects
WestCoastProjects

Reputation: 63239

Instruct sbt dependencies processor to only update *missing* dependencies

Consider a project with many many dependencies. We add more dependencies- often one at a time - on a regular basis.

When a single dependency is added we have to wait minutes while sbt goes and re-verifies all of the existing libraries/dependencies.

is there a way to instruct sbt to "trust us" that the existing dependencies were valid - and just go fetch the missing ones?

Upvotes: 2

Views: 255

Answers (1)

Justin Kaeser
Justin Kaeser

Reputation: 5948

You can enable cached resolution in your build.sbt:

updateOptions := updateOptions.value.withCachedResolution(true)

For most project, using Coursier as an alternative to the built-in ivy resolution gives significant speedups in this area. Enable it with the setting:

addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC2")

Upvotes: 3

Related Questions