Skip to content

Commit

Permalink
feat: Support Scala 2.13.13 and 2.12.19 out of the box (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnnei authored Feb 27, 2024
1 parent baa7e27 commit 53f1c4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ object ScapegoatSbtPlugin extends AutoPlugin {
val selectedScapegoatVersion = (scapegoatVersion ?).value.getOrElse {
scalaVersion.value match {
// To give a better out of the box experience, default to a recent version of Scapegoat for known Scala versions
case "2.13.12" | "2.13.11" => "2.1.3"
case "2.13.10" | "2.12.18" | "2.12.17" => "2.1.2"
case "2.13.13" | "2.13.12" | "2.12.19" | "2.12.18" => "2.1.5"
case "2.13.11" | "2.12.17" => "2.1.4"
case "2.13.10" => "2.1.2"
case "2.13.9" | "2.12.16" => "2.1.1"
// Default to the latest version with Scala 2.11 support to improve apparent compatibility
case _ => "1.4.17"
Expand Down
4 changes: 2 additions & 2 deletions src/sbt-test/auto-config/scala212/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ lazy val root = (project in file("."))
TaskKey[Unit]("check") := {
val dependencies = libraryDependencies.value
val scapegoat = dependencies.find(d => d.organization == "com.sksamuel.scapegoat" && d.name == "scalac-scapegoat-plugin")
if (!scapegoat.map(_.revision).contains("2.1.2")) {
sys.error(s"Expected Scapegoat version to default to 2.1.2 for scala ${scalaVersion.value}, got: ${scapegoat}")
if (!scapegoat.map(_.revision).contains("2.1.4")) {
sys.error(s"Expected Scapegoat version to default to 2.1.4 for scala ${scalaVersion.value}, got: ${scapegoat}")
}
}
)

0 comments on commit 53f1c4d

Please sign in to comment.