gpt4 book ai didi

gradle - gradle依赖管理默认使用最新工件

转载 作者:行者123 更新时间:2023-12-03 05:18:31 25 4
gpt4 key购买 nike

我在gradle文档中读到

"Newest - used by default by Gradle - the newest version of the dependency is used. 
This strategy has been in Gradle since early days."

但是,当我使用代码复制配置时,我看到具有不同版本的重复 jar
task('copyJars') { 
//ext.collection = files { genLibDir.listFiles() }
//delete ext.collection
copy { from configurations.compile into genLibDir }
//copy { from fixedLibDir into genLibDir }
}

这是其中之一。
snakeyaml-1.6.jar
snakeyaml-1.7.jar

这是最新的1.1 gradle下载

最佳答案

仅当Maven或Ivy存储库中的依赖项具有必要的元数据(pom.xml或ivy.xml)时,才会解决冲突。

关于gradle - gradle依赖管理默认使用最新工件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12288230/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com