mirror of https://github.com/sbt/sbt.git
Fix version-interval
This commit is contained in:
parent
5c2b95980b
commit
9c425ea581
|
|
@ -1,23 +1,18 @@
|
|||
|
||||
libraryDependencies += "org.json4s" %% "json4s-native" % "[3.3.0,3.5.0)"
|
||||
|
||||
scalaVersion := "2.12.17"
|
||||
|
||||
lazy val actualVersionCheck = taskKey[Unit]("")
|
||||
|
||||
actualVersionCheck := {
|
||||
|
||||
val log = streams.value.log
|
||||
|
||||
val configReport = update.value
|
||||
.configuration(Compile)
|
||||
.getOrElse {
|
||||
sys.error("compile configuration not found in update report")
|
||||
}
|
||||
|
||||
val modules = configReport
|
||||
.modules
|
||||
.map(_.module)
|
||||
|
||||
assert(modules.nonEmpty)
|
||||
assert(modules.exists(_.name.startsWith("json4s-native")))
|
||||
|
||||
|
|
@ -25,7 +20,6 @@ actualVersionCheck := {
|
|||
val v = m.revision
|
||||
v.contains("[") || v.contains("]") || v.contains("(") || v.contains(")")
|
||||
}
|
||||
|
||||
if (wrongModules.nonEmpty) {
|
||||
log.error("Found unexpected intervals in revisions")
|
||||
for (m <- wrongModules)
|
||||
|
|
|
|||
Loading…
Reference in New Issue