Skip to content

Commit 689d562

Browse files
smarteradpi2
authored andcommitted
sbt-dotty: the binary version is 3 for Scala >= 3.0.0
1 parent 4936b37 commit 689d562

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,10 @@ object DottyPlugin extends AutoPlugin {
264264
scalaBinaryVersion := {
265265
scalaVersion.value.split("[\\.-]").toList match {
266266
case "0" :: minor :: _ => s"0.$minor"
267-
case "3" :: minor :: patch :: suffix =>
268-
s"3.$minor.$patch" + (suffix match {
269-
case milestone :: _ => s"-$milestone"
270-
case Nil => ""
271-
})
267+
case "3" :: "0" :: "0" :: milestone :: _ =>
268+
s"3.0.0-$milestone"
269+
case "3" :: _ =>
270+
"3"
272271
case _ => scalaBinaryVersion.value
273272
}
274273
},

0 commit comments

Comments
 (0)