scala - 如何防止 SBT 解决不同项目的相同依赖项

标签 scala build sbt

我有一个包含 4 个项目的 .sbt 文件。它们都共享许多依赖项。当我Refresh SBT在 Idea 中,它似乎一遍又一遍地解决所有依赖项,即使它们之前已经在其他项目中解决过。

有什么办法可以防止这种情况吗?

最佳答案

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.



尝试设置:
updateOptions := updateOptions.value.withCachedResolution(true)

关于scala - 如何防止 SBT 解决不同项目的相同依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37659949/

相关文章:

Scala:如何强制提供类型

scala - 调用 Default Application Lifecycle.stop 时,Play Framework 应用程序永远不会停止

scala - 使用 Guice 和 MockitoSugar 模拟返回 Cats EitherT 的服务

node.js - 构建 angular2 库时出错

Scala构建工具SBT与CBT

scala - 可以更改 sbt 插件的日志级别吗?比如 sbt-idea?

intellij-idea - 异常或错误导致运行中止 : org. mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress()L

scala - 如何理解scala中的monad

java - 直接使用 github 存储库位置进行复合构建

build - 无法从 VSTS 代理运行 'ng'