构建.sbt
scalaVersion := "2.11.4"
项目/build.properties
sbt.version=0.13.7
然后
> show scalaVersion
[info] 2.11.4
> show crossScalaVersions
[info] List(2.10.4)
> inspect crossScalaVersions
[info] Setting: scala.collection.Seq[java.lang.String] = List(2.10.4)
[info] Description:
[info] The versions of Scala used when cross-building.
[info] Provided by:
[info] */*:crossScalaVersions
[info] Defined at:
[info] (sbt.Defaults) Defaults.scala:237
[info] Delegates:
[info] *:crossScalaVersions
[info] {.}/*:crossScalaVersions
[info] */*:crossScalaVersions
[info] Related:
[info] */*:crossScalaVersions
看起来crossScalaVersions
应该是List(2.11.4)
。
看看 SBT 的源代码,我也是这么想的。
crossScalaVersions := Seq(scalaVersion.value)
为什么不crossScalaVersions
对应scalaVersion
?