Skip to content

Commit

Permalink
update wartremover to support 2.13.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SimY4 authored and augi committed Jul 13, 2020
1 parent b651f78 commit 7a90dee
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.5" : '2.11:2.4.2'
scalaMinorVersion >= 12 ? "$scalaVersion:2.4.9" : '2.11:2.4.2'
} else if (scalaMajorVersion == '2.12') {
scalaMinorVersion >= 8 ? "$scalaVersion:2.4.5" : '2.12:2.4.2'
scalaMinorVersion >= 8 ? "$scalaVersion:2.4.9" : '2.12:2.4.2'
} else if (scalaMajorVersion == '2.13') {
"$scalaVersion:2.4.5"
"$scalaVersion:2.4.9"
} else {
throw new RuntimeException("Unsupported Scala version: $scalaVersion")
}
Expand Down

0 comments on commit 7a90dee

Please sign in to comment.