mirror of https://github.com/sbt/sbt.git
parent
2d106d92a5
commit
1bf6f0d2a0
|
|
@ -310,6 +310,12 @@ object Cross {
|
|||
case (_, scalaVersions) =>
|
||||
scalaVersions.exists(v => CrossVersion.binaryScalaVersion(v) == binaryVersion)
|
||||
}
|
||||
if (included.isEmpty) {
|
||||
sys.error(
|
||||
s"""Switch failed: no subprojects list "$version" (or compatible version) in crossScalaVersions setting.
|
||||
|If you want to force it regardless, call ++ $version!""".stripMargin
|
||||
)
|
||||
}
|
||||
logSwitchInfo(included, excluded)
|
||||
included
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
-> ++2.12.0-magic
|
||||
|
||||
> ++2.11.11 compile
|
||||
|
||||
$ exists core/target/scala-2.11
|
||||
|
|
|
|||
Loading…
Reference in New Issue