I have an existing Scala with sbt project. Sbt version 1.4.7
. I want to make dependencies check more strict according to next article: https://www.scala-lang.org/2019/10/17/dependency-management.html
I've added the next configuration to my build.sbt
:
versionReconciliation ++= Seq(
"org.typelevel" %% "cats-core" % "relaxed", // "semver" reconciliation is also available
"*" % "*" % "strict"
)
But got the error: error: not found: value versionReconciliation
My plugins.sbt
is empty. sbt installed via Sdkman
As the document you references states, to use this way you need to use sbt-coursier, i.e. you need to add
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "2.0.0-RC6-8")
to be able to useversionReconciliation
. Without the plugin you should be able to use theconflictManager
key.