Win*_*ker 4 dependency-management gradle
我刚刚遇到了一个关于 Gradle 依赖管理的小问题。我知道我可以声明依赖项latest.integration用于引用快照或用于latest.release引用发布版本中的工件。
我的问题是:如果最新发布的工件具有比集成中的最新版本更高的版本latest.integration,是仅引用最新的 SNAPSHOT 工件还是将latest.integration使用发布工件解决?
例子:
latest snapshot artifact: 2.1
latest release artifact: 2.2
Run Code Online (Sandbox Code Playgroud)
如果使用latest.integration,将使用哪一个来解决依赖关系?如果它latest.integration也集成了发布工件,我可以根据哪个规则明确引用快照工件?
latest.integration解析为最新的快照或版本,以较新者为准。仅最新快照没有符号版本(使用1.2.3-SNAPSHOT)。
| 归档时间: |
|
| 查看次数: |
3178 次 |
| 最近记录: |