From b4ddf4c1b4d838ed4422f2a5b1d6ed000108d06b Mon Sep 17 00:00:00 2001 From: "Sean C. Sullivan" Date: Sun, 20 Dec 2020 12:07:14 -0800 Subject: [PATCH] support Scala 3.x --- build.sbt | 4 +++- project/plugins.sbt | 2 ++ version.properties | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index c6829dc1..b800b258 100644 --- a/build.sbt +++ b/build.sbt @@ -26,7 +26,7 @@ lazy val commonSettings = version.get.replace(".*", "-SNAPSHOT") } }, - crossScalaVersions := Seq(currentScalaVersion, "2.12.12", "2.11.12"), + crossScalaVersions := Seq(currentScalaVersion, "2.12.12", "2.11.12", "3.0.0-M3"), scalafmtOnCompile := true, scalacOptions ++= Seq( "-unchecked", @@ -44,6 +44,8 @@ lazy val commonSettings = Seq("-Xsource:2.12", "-Ypartial-unification") case Some((2, 12)) => Seq("-Ypartial-unification") + case Some((3, _)) => + Seq("-source:3.0-migration", "-explain", "-explain-types") case _ => Nil } diff --git a/project/plugins.sbt b/project/plugins.sbt index bcda4ae8..4b60b355 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1 +1,3 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") + +addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.1") diff --git a/version.properties b/version.properties index 17c48a07..d82cf480 100644 --- a/version.properties +++ b/version.properties @@ -1,3 +1,3 @@ # The version is inferred by shipkit-auto-version Gradle plugin # More: https://github.com/shipkit/shipkit-auto-version -version=1.16.* \ No newline at end of file +version=1.17.*