Skip to content

Commit

Permalink
chore: wartremover 2.4.20 used where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Sep 30, 2022
1 parent aad1b99 commit 366e02d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,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.16" : '2.11:2.4.16'
scalaMinorVersion >= 12 ? "$scalaVersion:2.4.20" : '2.11:2.4.16'
} else if (scalaMajorVersion == '2.12') {
scalaMinorVersion >= 10 ? "$scalaVersion:2.4.16" : (scalaMinorVersion >= 8 ? "$scalaVersion:2.4.13" : '2.12:2.4.16')
scalaMinorVersion >= 10 ? "$scalaVersion:2.4.20" : (scalaMinorVersion >= 8 ? "$scalaVersion:2.4.13" : '2.12:2.4.16')
} else if (scalaMajorVersion == '2.13') {
"$scalaVersion:2.4.16"
"$scalaVersion:2.4.20"
} else {
throw new RuntimeException("Unsupported Scala version: $scalaVersion")
}
Expand Down

0 comments on commit 366e02d

Please sign in to comment.