Skip to content

Commit

Permalink
Add Scala 2.13.12 to version mapping (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnnei authored Sep 22, 2023
1 parent a3e47f4 commit 23e5a46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sbt-scapegoat
=============

[![plugin release badge]][plugin release link]
![plugin release badge]

sbt-scapegoat is a plugin for SBT that integrates the scapegoat [static code analysis library](http://en.wikipedia.org/wiki/Static_program_analysis). Find out more about scapegoat at the [scapegoat project page](https://github.com/sksamuel/scapegoat).

Expand All @@ -16,7 +16,7 @@ sbt-scapegoat is an [auto plugin](https://typesafe.com/blog/preview-of-upcoming-
Add the plugin to your build with the following in project/plugins.sbt:

```scala
addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.1.1") // Verify latest in badge above
addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.2.2") // Verify latest in badge above
```

The plugin has a default Scapegoat version depending on the Scala version you are using.
Expand Down Expand Up @@ -143,6 +143,6 @@ Please note that scapegoat is a new project. While it's been tested on some comm
If you have an error please do report it, but it would be helpful if the issues were logged at the [scapegoat](https://github.com/sksamuel/scapegoat) issues page, unless the bug is directly related to the plugin. Eg, inspection false positives or false negatives are errors in the scalac compiler plugin, not the sbt plugin.


[plugin release badge]: https://maven-badges.herokuapp.com/maven-central/com.sksamuel.scapegoat/sbt-scapegoat/badge.svg?subject=Latest%20Plugin%20Release&color=yellowgreen
[plugin release badge]: https://img.shields.io/github/v/tag/scapegoat-scala/sbt-scapegoat?label=Latest%20Release
[plugin release link]: https://maven-badges.herokuapp.com/maven-central/com.sksamuel.scapegoat/sbt-scapegoat
[scapegoat release badge]: https://maven-badges.herokuapp.com/maven-central/com.sksamuel.scapegoat/scalac-scapegoat-plugin_2.13.6/badge.svg?subject=Latest%20scapegoat&color=yellowgreen
Original file line number Diff line number Diff line change
Expand Up @@ -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.11" | "2.13.10" | "2.12.18" | "2.12.17" => "2.1.2"
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.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

0 comments on commit 23e5a46

Please sign in to comment.