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

Commit cf78193

Browse files
committed
Workaround for scalaBinaryVersion handling for 2.12.x
This will be rolled into sbt-scala-modules soon, but I'd like to get the ball rolling here.
1 parent 9ca3fb1 commit cf78193

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build.sbt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@ scalaXmlVersion := "1.0.1"
1212

1313
scalaCheckVersion := "1.11.3"
1414

15-
// used as binary version when compiling against 2.11.0-SNAPSHOT
15+
// used as binary version when compiling against 2.12.0-SNAPSHOT
1616
snapshotScalaBinaryVersion := "2.11.0"
1717

18+
// TODO remove this after https://github.com/scala/sbt-scala-modules/pull/7
19+
// is merged and this build refers to the new plugin.
20+
scalaBinaryVersion := (
21+
if (scalaVersion.value.startsWith("2.12"))
22+
snapshotScalaBinaryVersion.value
23+
else
24+
scalaBinaryVersion.value
25+
)
26+
1827
// TODO: enable "-Xfatal-warnings" for nightlies,
1928
// off by default because we don't want to break scala/scala pr validation due to deprecation
2029
// don't use for doc scope, scaladoc warnings are not to be reckoned with

0 commit comments

Comments
 (0)