【发布时间】:2017-12-21 12:58:21
【问题描述】:
Gradle 是否支持版本中的逗号来指定多个范围?
喜欢:
dependencies {
compile 'org.webjars.npm:minimatch:2.+,3.+'
}
或:
compile 'org.webjars.npm:minimatch:[2,3),[3,4)'
(,1.0],[1.2,) x = 1.2。多个集合以逗号分隔
(,1.1),(1.1,) 如果已知不能与此库结合使用,则不包括 1.1
为:
dependencies {
compile(group: 'org.webjars.npm', name: 'glob', version: '5.0.15') {
}
它失败了:
Execution failed for task ':dump'.
> Could not resolve all files for configuration ':runtime'.
> Could not find org.webjars.npm:minimatch:[2,3),[3,4).
Searched in the following locations:
https://repo1.maven.org/maven2/org/webjars/npm/minimatch/[2,3),[3,4)/minimatch-[2,3),[3,4).pom
https://repo1.maven.org/maven2/org/webjars/npm/minimatch/[2,3),[3,4)/minimatch-[2,3),[3,4).jar
https://jcenter.bintray.com/org/webjars/npm/minimatch/[2,3),[3,4)/minimatch-[2,3),[3,4).pom
https://jcenter.bintray.com/org/webjars/npm/minimatch/[2,3),[3,4)/minimatch-[2,3),[3,4).jar
Required by:
project : > org.webjars.npm:glob:5.0.15
【问题讨论】:
标签: gradle versioning