Skip to content

Instantly share code, notes, and snippets.

@limansky
Created June 11, 2019 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save limansky/eb8f2917245abd69e7904665f6a8fdf5 to your computer and use it in GitHub Desktop.
Save limansky/eb8f2917245abd69e7904665f6a8fdf5 to your computer and use it in GitHub Desktop.
sbt cross build issue demo
lazy val root = project.in(file("."))
.aggregate(core, moduleA, moduleB)
.settings(
crossScalaVersions := Nil
)
lazy val core = project.in(file("core"))
.settings(
crossScalaVersions := Seq("2.11.12", "2.12.8")
)
lazy val moduleA = project.in(file("moduleA"))
.settings(
crossScalaVersions := Seq("2.11.12", "2.12.8")
)
.dependsOn(core)
lazy val moduleB = project.in(file("moduleB"))
.settings(
crossScalaVersions := Seq("2.12.8")
)
.dependsOn(core)
@limansky
Copy link
Author

Steps to reproduce:

  1. run sbt
  2. ++2.11.12 -v
  3. compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment