Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 277e813

Browse files
committed
Make scalaXmlVersion logic friendly to future 2.12 releases
Otherwise, we'll fall back to the non-existent scala-xml 1.0.4 when bootstrapping the modules with new releases of Scala 2.12.
1 parent ad9e6b8 commit 277e813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ crossScalaVersions := {
1313
if (java.startsWith("1.6."))
1414
Seq("2.11.7", "2.12.0-M1")
1515
else if (java.startsWith("1.8."))
16-
Seq("2.12.0-M2", "2.12.0-M3")
16+
Seq("2.12.0-M3")
1717
else
1818
sys.error(s"don't know what Scala versions to build on $java")
1919
}
2020

2121
scalaXmlVersion := {
22-
if(scalaVersion.value == "2.12.0-M3") "1.0.5" else "1.0.4"
22+
if(scalaVersion.value.startsWith("2.11.") || scalaVersion.value == "2.12.0-M2") "1.0.4" else "1.0.5"
2323
}
2424

2525
scalaCheckVersion := "1.11.6"

0 commit comments

Comments
 (0)