我有一个包含 4 个项目的 .sbt 文件。它们都共享许多依赖项。当我Refresh SBT
在 Idea 中,它似乎一遍又一遍地解决所有依赖项,即使它们之前已经在其他项目中解决过。
有什么办法可以防止这种情况吗?
最佳答案
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.
尝试设置:
updateOptions := updateOptions.value.withCachedResolution(true)
关于scala - 如何防止 SBT 解决不同项目的相同依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37659949/