Skip to content

Commit 4035706

Browse files
committed
sbt-dotty: Future-proof scalaBinaryVersion
Needs to work for dotty 0.2 and onwards too.
1 parent 352c09e commit 4035706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ object DottyPlugin extends AutoPlugin {
9595

9696
scalaBinaryVersion := {
9797
if (isDotty.value)
98-
"0.1" // TODO: Fix sbt so that this isn't needed
98+
scalaVersion.value.split("\\.").take(2).mkString(".") // Not needed with sbt >= 0.13.16
9999
else
100100
scalaBinaryVersion.value
101101
}

0 commit comments

Comments
 (0)