Skip to content

Commit

Permalink
feat: lazy configureEach used instead of all
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Jun 20, 2022
1 parent 965f6a4 commit b8fe015
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class WartremoverPlugin implements Plugin<Project> {
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<String>()
}
Expand Down

0 comments on commit b8fe015

Please sign in to comment.