Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent SBT from resolving the same dependencies for different projects

Tags:

scala

build

sbt

I have a .sbt file with 4 projects. They all share many dependencies. When I Refresh SBT in Idea, it seems to resolve all dependencies over and over again, even if they have been previously resolved in other projects.

Is there any way to prevent this?

like image 279
mirosval Avatar asked Jun 06 '16 14:06

mirosval


1 Answers

There's cached resolution:

The intended performance improvement is that the second and third subprojects can take advantage of the resolved minigraphs from the first one and avoid duplicated work.

Try it with setting:

updateOptions := updateOptions.value.withCachedResolution(true)
like image 62
Eugene Yokota Avatar answered Nov 15 '22 05:11

Eugene Yokota