[英]How can revisionId in libraryDependencies be the latest available version in SBT 0.13+?
How can I set the revisionId
of the libraryDependencies
setting to the latest available version in SBT 0.13+
. 我怎样才能设置
revisionId
中的libraryDependencies
设置在SBT最新版本0.13+
。 I was using "*"
but didn't seem to work, eg: 我使用
"*"
但似乎没有用,例如:
"org.eclipse.jetty" % "jetty-webapp" % "*"
SBT uses Ivy for dependency resolution, so it supports Ivy's dynamic revision syntax: SBT使用Ivy进行依赖性解析,因此它支持Ivy的动态修订语法:
9.0.+
will match any version like 9.0.0
or 9.0.7
, 9.0.+
将匹配任何版本,如9.0.0
或9.0.7
, latest.release
will match the most recent release, latest.release
将匹配最新版本, [9.0,)
matches all versions greater or equal to 9.0
, like for example 9.1.0
, [9.0,)
匹配大于或等于9.0
所有版本,例如9.1.0
, [9.0,9.1[
matches all versions greater or equal to 9.0
and strictly below 9.1
, [9.0,9.1[
匹配所有版本大于或等于9.0
且严格低于9.1
, By default SBT will pick the latest available revision in a range, even in case of a dependency conflict, but this can be customized . 默认情况下,SBT将选择范围内的最新可用修订版,即使在依赖项冲突的情况下, 也可以自定义 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.