From 366e02d1689e1ba4e4766b36b89c380272dd2fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20August=C3=BDn?= Date: Fri, 30 Sep 2022 12:43:56 +0200 Subject: [PATCH] chore: wartremover 2.4.20 used where possible --- .../cz/augi/gradle/wartremover/WartremoverPlugin.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy b/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy index 82cea6f..1ddea86 100644 --- a/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy +++ b/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy @@ -30,11 +30,11 @@ class WartremoverPlugin implements Plugin { 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") }