Gio*_*tta 5 reporting project gradle
根据标题,是否有办法为所有子项目提供汇总的项目报告?在我的build.gradle中,我有类似的东西:
subprojects {
apply plugin: 'project-report'
// ... more stuff
}
Run Code Online (Sandbox Code Playgroud)
但后来每个子项目最终得到一份报告.将所有报告放在一个地方会很好,但我无法弄清楚如何.这可能吗?
我刚刚在文档中htmlDependencyReport注意到您现在可以执行此任务:
apply plugin: 'project-report'
htmlDependencyReport {
projects = project.allprojects
}
Run Code Online (Sandbox Code Playgroud)
请注意,插件正在此处应用于根项目,而不是在subprojects问题中显示的配置块中.
我不知道哪个版本的Gradle添加了此功能,但我可以确认它在Gradle 2.0中有效.根据目前的文档(Gradle 2.2.1,2015年1月),这个功能仍在孵化.
| 归档时间: |
|
| 查看次数: |
1613 次 |
| 最近记录: |