Skip to content

Commit

Permalink
Bump version from 2.11 release to 2.12 series
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmulder committed Aug 22, 2017
1 parent 98488f8 commit 9a9761d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ object Build {
val dottyOrganization = "ch.epfl.lamp"
val dottyGithubUrl = "https://github.com/lampepfl/dotty"
val dottyVersion = {
val baseVersion = "0.3.0-RC1"
val baseVersion = "0.4.0"
val isNightly = sys.env.get("NIGHTLYBUILD") == Some("yes")
val isRelease = sys.env.get("RELEASEBUILD") == Some("yes")
if (isNightly)
Expand Down
2 changes: 1 addition & 1 deletion sbt-dotty/src/dotty/tools/sbtplugin/DottyIDEPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,6 @@ object DottyIDEPlugin extends AutoPlugin {
}
}
}

) ++ addCommandAlias("launchIDE", ";configureIDE;runCode")
}
14 changes: 9 additions & 5 deletions sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ object DottyPlugin extends AutoPlugin {
def withDottyCompat(): ModuleID =
moduleID.crossVersion match {
case _: CrossVersion.Binary =>
moduleID.cross(CrossVersion.binaryMapped {
// TODO: this will break on release of >= 0.4
case version if version.startsWith("0.3") => "2.12"
case version if version.startsWith("0.") => "2.11"
case version => version
moduleID.cross(CrossVersion.binaryMapped { version =>
CrossVersion.partialVersion(version) match {
case Some(0, minor) =>
// Dotty v0.4 or greater is compatible with 2.12.x
if (minor >= 4) "2.12"
else "2.11"
case _ =>
version
}
})
case _ =>
moduleID
Expand Down

0 comments on commit 9a9761d

Please sign in to comment.