From 018682203d6ebb7eaa3b1f5605ada571dab820ad Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Mon, 29 Mar 2021 11:06:20 -0700 Subject: [PATCH 1/2] upgrade to sbt 1.5 (was 1.4) --- project/build.properties | 2 +- project/plugins.sbt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/project/build.properties b/project/build.properties index dbae93b..af4ff6f 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.4.9 +sbt.version=1.5.0-RC2 diff --git a/project/plugins.sbt b/project/plugins.sbt index e47c7d1..32698b2 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,2 @@ addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.2.4") addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5") -addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.3") From 6950d8f0299c842b795a2dd70e9dcbdea8a99dbc Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Mon, 29 Mar 2021 11:06:12 -0700 Subject: [PATCH 2/2] add Scala 3.0.0-RC2 to crossbuild --- .travis.yml | 1 + build.sbt | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0a3363c..62afe56 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ import: scala/scala-dev:travis/default.yml language: scala scala: + - 3.0.0-RC2 - 3.0.0-RC1 - 2.11.12 - 2.12.13 diff --git a/build.sbt b/build.sbt index 2978b49..578e555 100644 --- a/build.sbt +++ b/build.sbt @@ -72,11 +72,11 @@ lazy val scalaJava8Compat = (project in file(".")) libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test", - scalaModuleMimaPreviousVersion := { + scalaModuleMimaPreviousVersion := (CrossVersion.partialVersion(scalaVersion.value) match { // pending resolution of https://github.com/scalacenter/sbt-version-policy/issues/62 - if (isDotty.value) None - else Some("0.9.1") - }, + case Some((3, _)) => None + case _ => Some("0.9.1") + }), mimaBinaryIssueFilters ++= { import com.typesafe.tools.mima.core._, ProblemFilters._ @@ -146,14 +146,14 @@ lazy val scalaJava8Compat = (project in file(".")) }, JavaDoc / javacOptions := Seq("-Xdoclint:none"), JavaDoc / packageDoc / artifactName := ((sv, mod, art) => "" + mod.name + "_" + sv.binary + "-" + mod.revision + "-javadoc.jar"), - libraryDependencies ++= ( - if (isDotty.value) Seq() - else Seq(compilerPlugin("com.typesafe.genjavadoc" % "genjavadoc-plugin" % "0.16" cross CrossVersion.full)) - ), - Compile / scalacOptions ++= ( - if (isDotty.value) Seq() - else Seq(s"""-P:genjavadoc:out=${target.value / "java"}""") - ), + libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match { + case Some((3, _)) => Seq() + case _ => Seq(compilerPlugin("com.typesafe.genjavadoc" % "genjavadoc-plugin" % "0.16" cross CrossVersion.full)) + }), + Compile / scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match { + case Some((3, _)) => Seq() + case _ => Seq(s"""-P:genjavadoc:out=${target.value / "java"}""") + }), ) } )