gpt4 book ai didi

gradle - 排除特定版本的传递依赖项的所有实例-Gradle

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

有没有办法排除传递性依赖关系的特定版本?我目前有以下内容,但似乎不支持该版本。

configurations {
compile.exclude group: 'org.hibernate',module: 'hibernate-core'
}

最佳答案

也许不是这样的答案,但可能会有所帮助。

Gradle忽略exclude子句中的版本(仅支持modulegroup),实现目标的一种方法是从另一个 Angular 进行攻击。如果您有兴趣排除特定版本,也许可以选择强制使用另一个版本,这可以通过以下方法实现:

configurations.all {
resolutionStrategy {
force 'your-lib:your-ver'
}
}

关于gradle - 排除特定版本的传递依赖项的所有实例-Gradle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41450905/

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