sbt-catalysts icon indicating copy to clipboard operation
sbt-catalysts copied to clipboard

No easy way to add CrossVersion libraries

Open Daenyth opened this issue 5 years ago • 0 comments

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

Daenyth avatar Jul 08 '20 17:07 Daenyth