Gradle中的版本范围 [英] Version ranges in gradle

查看:50
本文介绍了Gradle中的版本范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在gradle依赖项中指定版本范围的可能方法是什么?我看到了一些1. +表示法,但是没有找到一个文档,其中确实说明了什么是可能的,什么不是.此外,我不知道Maven范围是否也可以使用.

What are the possible ways of specifying version ranges in gradle dependencies? I saw some 1.+ notation but I have not found a document which really says what is possible and what is not. Furthermore, I do not know whether the Maven ranges can be used as well.

有人可以给我一个简短的概述,以便我理解规则吗?

Can somebody give me a short overview so that I can understand the rules?

推荐答案

《 Gradle Dependency Management》一书在p中指出.从12和13可以看出,除了+表示法(2.1.+表示从2.1.0包括2.2.0到2.2.0排除范围)之外,您还可以将常春藤表示法用于表格的打开和关闭间隔

The book "Gradle Dependency Management" states on p. 12 and 13 that, in addition to the +-notation (2.1.+ means the range from 2.1.0 inclusive to 2.2.0 exclusive) you can use the Ivy notation for open and closed intervals of the form

[1.0,2.0]
[1.0,2.0[

还是

[1.0, )

从1.0开始的所有版本".

for "all versions starting from 1.0".

这篇关于Gradle中的版本范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆