加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

scala – 如何防止SBT为不同的项目解析相同的依赖项

发布时间:2020-12-16 09:55:41 所属栏目:安全 来源:网络整理
导读:我有一个包含4个项目的.sbt文件.它们都共享许多依赖项.当我在Idea中刷新SBT时,它似乎一遍又一遍地解决所有依赖关系,即使它们之前已在其他项目中解决过. 有什么方法可以防止这种情况吗? 解决方法 有 cached resolution: The intended performance improveme
我有一个包含4个项目的.sbt文件.它们都共享许多依赖项.当我在Idea中刷新SBT时,它似乎一遍又一遍地解决所有依赖关系,即使它们之前已在其他项目中解决过.

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

解决方法

有 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)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读