mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 18:43:31 +02:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user