Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aggregating Gradle project-report reports for subprojects

As per title, is there a way to have aggregated project reports for all the subprojects? In my build.gradle I have something like:

subprojects {
  apply plugin: 'project-report'
  // ... more stuff
}

but then I end up with one report per subproject. It would be nice to have all the reports in one place but I couldn't figure out how. Is this possible?

like image 401
Giovanni Botta Avatar asked Jan 17 '14 16:01

Giovanni Botta


Video Answer


1 Answers

I just noticed in the documentation for the htmlDependencyReport task that you can do this now:

apply plugin: 'project-report'

htmlDependencyReport {
    projects = project.allprojects
}

Note that the plugin is being applied to the root project here, not in a subprojects configuration block as shown in the question.

I don't know which version of Gradle added this feature, but I can confirm it works in Gradle 2.0. According to the current docs (Gradle 2.2.1, January 2015) this feature is still incubating.

like image 182
Doug Paul Avatar answered Oct 24 '22 19:10

Doug Paul