Fix version-interval

This commit is contained in:
Adrien Piquerez 2024-03-26 16:15:58 +01:00
parent 5c2b95980b
commit 9c425ea581
2 changed files with 1 additions and 7 deletions

View File

@ -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)