diff --git a/project/Build.scala b/project/Build.scala index ca3ec50b5179..b4d36c02a36e 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -864,7 +864,7 @@ object Build { settings(commonSettings). settings( version := { - val base = "0.2.1" + val base = "0.2.2" if (isRelease) base else base + "-SNAPSHOT" }, diff --git a/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala b/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala index 45768ac0d5a8..c971e9020582 100644 --- a/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala +++ b/sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala @@ -179,6 +179,14 @@ object DottyPlugin extends AutoPlugin { dottyBridge else scalaBridge + }, + + // Needed for RCs publishing + scalaBinaryVersion := { + if (isDotty.value) + scalaVersion.value.split("\\.").take(2).mkString(".") + else + scalaBinaryVersion.value } ) }