Skip to content

Commit

Permalink
Update build for Scala 2.12.15
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrich committed Sep 22, 2021
1 parent 7f4a720 commit d246717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ def versionFmt(out: sbtdynver.GitDescribeOutput): String = {
else nextVersion + "-SNAPSHOT"
}

val scalacOpts = List(
"-unchecked",
"-deprecation",
"-feature",
val dotcOpts = List("-unchecked", "-deprecation", "-feature")
val scalacOpts = dotcOpts ++ List(
//"-Ywarn-unused:imports", // no 2.11 - maybe time for sbt-tpolecat
"-Xsource:3"
//"-Xlint:nonlocal-return" // no 2.11/2.12
)

val dotcOpts = List("-unchecked", "-deprecation", "-feature")

Compile / console / scalacOptions --= Seq(
"-Xlint:nonlocal-return", // for 2.12 console
"-Ywarn-unused:imports",
Expand All @@ -43,7 +39,7 @@ val isScala3 = Def.setting {
}

val scala211 = "2.11.12"
val scala212 = "2.12.14"
val scala212 = "2.12.15"
val scala213 = "2.13.6"
val scala300 = "3.0.2"

Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ addSbtPlugin("org.scala-native" % "sbt-scala-native" % scalaNativ
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % crossVer)
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)

addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.30")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.31")

0 comments on commit d246717

Please sign in to comment.