From 7a90dee090ecb4735c3e8be3d1e9a8373fd9bd17 Mon Sep 17 00:00:00 2001 From: SimY4 Date: Mon, 13 Jul 2020 20:50:41 +1000 Subject: [PATCH] update wartremover to support 2.13.3 --- .../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 2f261ea..f73bc7f 100644 --- a/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy +++ b/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy @@ -34,11 +34,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.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") }