0
是否有排除特定版本的传递依赖项的方法?我目前有以下版本但似乎不支持。排除特定版本的传递依赖项的所有实例 - Gradle
configurations {
compile.exclude group: 'org.hibernate',module: 'hibernate-core'
}
是否有排除特定版本的传递依赖项的方法?我目前有以下版本但似乎不支持。排除特定版本的传递依赖项的所有实例 - Gradle
configurations {
compile.exclude group: 'org.hibernate',module: 'hibernate-core'
}
也许不是答案本身,而是可能会有所帮助。
摇篮中exclude条款(只支持module
和group
)和单向忽略版本来实现你的目标是从不同的角度攻击它。如果您对排除特定版本感兴趣,也许您可以决定强制推出另一个版本,这可以通过以下方式实现:
configurations.all {
resolutionStrategy {
force 'your-lib:your-ver'
}
}