sbt-catalysts
sbt-catalysts copied to clipboard
No easy way to add CrossVersion libraries
For example, here's how I currently have to add silencer:
lazy val libs = org.typelevel.libraries
.addScalacPlugin("silencer-plugin",
version = "1.7.0",
org = "com.github.ghik",
crossVersion = CrossVersion.full)
.add("silencer-lib", version = "1.7.0", org = "com.github.ghik")
val commonSettings = Seq(
libraryDependencies += libs.moduleID("silencer-lib").value % Provided cross CrossVersion.full,
addCompilerPlugins(libs, "silencer-plugin")
)
It would be nice if .add could take a CrossVersion argument, or if I could supply it to .dependency at least