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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With