We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 170717f commit 00b4edeCopy full SHA for 00b4ede
src/main/groovy/org/scoverage/ScoveragePlugin.groovy
@@ -298,10 +298,8 @@ class ScoveragePlugin implements Plugin<PluginAware> {
298
it.logger.warn("Scala sub-project '${it.name}' doesn't have Scoverage applied and will be ignored in parent project aggregation")
299
}
300
301
- def childReportTasks = project.subprojects.findResults {
302
- it.tasks.find { task ->
303
- task.name == REPORT_NAME && task instanceof ScoverageAggregate
304
- }
+ def childReportTasks = project.subprojects.collectMany {
+ it.tasks.withType(ScoverageAggregate).matching { it.name == REPORT_NAME }
305
306
def allReportTasks = childReportTasks + globalReportTask.get()
307
def allSources = project.objects.fileCollection()
0 commit comments