From b8fe015fec49731316083a34852f8adf2c38b557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20August=C3=BDn?= Date: Mon, 20 Jun 2022 23:35:39 +0200 Subject: [PATCH] feat: lazy configureEach used instead of all --- .../groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy b/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy index 2b06856..82cea6f 100644 --- a/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy +++ b/src/main/groovy/cz/augi/gradle/wartremover/WartremoverPlugin.groovy @@ -10,7 +10,7 @@ class WartremoverPlugin implements Plugin { def extension = project.extensions.create('wartremover', WartremoverExtension) project.afterEvaluate { project.dependencies { scalaCompilerPlugins "org.wartremover:wartremover_${getWartremoverArtifactSuffix(project)}" } - project.tasks.withType(ScalaCompile).all { scalaTask -> + project.tasks.withType(ScalaCompile).configureEach { scalaTask -> if (scalaTask.scalaCompileOptions.additionalParameters == null) { scalaTask.scalaCompileOptions.additionalParameters = new ArrayList() }