Skip to content

Commit

Permalink
Fix RCs publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
allanrenucci committed Apr 26, 2018
1 parent 5a1baca commit 3368fb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},

Expand Down
8 changes: 8 additions & 0 deletions sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
)
}
Expand Down

0 comments on commit 3368fb1

Please sign in to comment.