Skip to content

Commit

Permalink
Update to the latest wartremover.
Browse files Browse the repository at this point in the history
To get support for Scala 2.12.11
  • Loading branch information
SimY4 authored and augi committed Mar 18, 2020
1 parent c6f9f76 commit abf81db
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class WartremoverPlugin implements Plugin<Project> {
Integer scalaMinorVersion = scalaVersion.split('\\.').takeRight(1).join('').toInteger() // 2.12.3 -> 3
if (scalaMajorVersion == '2.10') '2.10:2.3.7'
else if (scalaMajorVersion == '2.11') {
scalaMinorVersion >= 12 ? "$scalaVersion:2.4.3" : '2.11:2.4.2'
scalaMinorVersion >= 12 ? "$scalaVersion:2.4.5" : '2.11:2.4.2'
} else if (scalaMajorVersion == '2.12') {
scalaMinorVersion >= 8 ? "$scalaVersion:2.4.3" : '2.12:2.4.2'
scalaMinorVersion >= 8 ? "$scalaVersion:2.4.5" : '2.12:2.4.2'
} else if (scalaMajorVersion == '2.13') {
"$scalaVersion:2.4.3"
"$scalaVersion:2.4.5"
} else {
throw new RuntimeException("Unsupported Scala version: $scalaVersion")
}
Expand Down

0 comments on commit abf81db

Please sign in to comment.