Skip to content

Commit 00b4ede

Browse files
committed
Fixed aggregate task concurrent access
1 parent 170717f commit 00b4ede

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/groovy/org/scoverage/ScoveragePlugin.groovy

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,8 @@ class ScoveragePlugin implements Plugin<PluginAware> {
298298
it.logger.warn("Scala sub-project '${it.name}' doesn't have Scoverage applied and will be ignored in parent project aggregation")
299299
}
300300
}
301-
def childReportTasks = project.subprojects.findResults {
302-
it.tasks.find { task ->
303-
task.name == REPORT_NAME && task instanceof ScoverageAggregate
304-
}
301+
def childReportTasks = project.subprojects.collectMany {
302+
it.tasks.withType(ScoverageAggregate).matching { it.name == REPORT_NAME }
305303
}
306304
def allReportTasks = childReportTasks + globalReportTask.get()
307305
def allSources = project.objects.fileCollection()

0 commit comments

Comments
 (0)