diff --git a/src/main/scala/com/sksamuel/scapegoat/sbt/ScapegoatSbtPlugin.scala b/src/main/scala/com/sksamuel/scapegoat/sbt/ScapegoatSbtPlugin.scala index 863ddb5..8e69ea1 100644 --- a/src/main/scala/com/sksamuel/scapegoat/sbt/ScapegoatSbtPlugin.scala +++ b/src/main/scala/com/sksamuel/scapegoat/sbt/ScapegoatSbtPlugin.scala @@ -127,7 +127,8 @@ 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.10" | "2.13.9" | "2.12.17" | "2.12.16" => "2.1.1" + case "2.13.11" | "2.13.10" | "2.12.18" | "2.12.17" => "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" } diff --git a/src/sbt-test/auto-config/multi-module/build.sbt b/src/sbt-test/auto-config/multi-module/build.sbt index 6cfe348..2132cc6 100644 --- a/src/sbt-test/auto-config/multi-module/build.sbt +++ b/src/sbt-test/auto-config/multi-module/build.sbt @@ -20,10 +20,10 @@ lazy val root = (project in file(".")) TaskKey[Unit]("check") := { val scapegoatModuleA = (moduleA / libraryDependencies).value.find(d => d.organization == "com.sksamuel.scapegoat" && d.name == "scalac-scapegoat-plugin") val scapegoatModuleB = (moduleB / libraryDependencies).value.find(d => d.organization == "com.sksamuel.scapegoat" && d.name == "scalac-scapegoat-plugin") - if (!scapegoatModuleA.map(_.revision).contains("2.1.1")) { - sys.error(s"Expected Scapegoat version to default to 2.1.1 in module-a for scala ${scalaVersion.value}, got: ${scapegoatModuleA}") + if (!scapegoatModuleA.map(_.revision).contains("2.1.2")) { + sys.error(s"Expected Scapegoat version to default to 2.1.2 in module-a for scala ${scalaVersion.value}, got: ${scapegoatModuleA}") } - if (!scapegoatModuleB.map(_.revision).contains("2.1.1")) { - sys.error(s"Expected Scapegoat version to default to 2.1.1 in module-b for scala ${scalaVersion.value}, got: ${scapegoatModuleB}") + if (!scapegoatModuleB.map(_.revision).contains("2.1.2")) { + sys.error(s"Expected Scapegoat version to default to 2.1.2 in module-b for scala ${scalaVersion.value}, got: ${scapegoatModuleB}") } } diff --git a/src/sbt-test/auto-config/scala212/build.sbt b/src/sbt-test/auto-config/scala212/build.sbt index aedf587..f41b5de 100644 --- a/src/sbt-test/auto-config/scala212/build.sbt +++ b/src/sbt-test/auto-config/scala212/build.sbt @@ -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.1")) { - sys.error(s"Expected Scapegoat version to default to 2.1.1 for scala ${scalaVersion.value}, got: ${scapegoat}") + 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}") } } ) diff --git a/src/sbt-test/auto-config/scala213/build.sbt b/src/sbt-test/auto-config/scala213/build.sbt index 1a29a48..8351ad2 100644 --- a/src/sbt-test/auto-config/scala213/build.sbt +++ b/src/sbt-test/auto-config/scala213/build.sbt @@ -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.1")) { - sys.error(s"Expected Scapegoat version to default to 2.1.1 for scala ${scalaVersion.value}, got: ${scapegoat}") + 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}") } } )