Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/main/groovy/org/scoverage/ScoveragePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,8 @@ class ScoveragePlugin implements Plugin<PluginAware> {
it.logger.warn("Scala sub-project '${it.name}' doesn't have Scoverage applied and will be ignored in parent project aggregation")
}
}
def childReportTasks = project.subprojects.findResults {
it.tasks.find { task ->
task.name == REPORT_NAME && task instanceof ScoverageAggregate
}
def childReportTasks = project.subprojects.collectMany {
it.tasks.withType(ScoverageAggregate).matching { it.name == REPORT_NAME }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks - is this a problem for projects under gradle 9 and up?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've forgotten the exact error here but I'm pretty sure some method the original code was using has been deprecated/removed.

}
def allReportTasks = childReportTasks + globalReportTask.get()
def allSources = project.objects.fileCollection()
Expand Down