AbstractConfigurationReportTask

注意:此类为孵化中,将来版本的Gradle中可能会有变动。

报告任务的基类,用于显示有关属性和与变体/配置相关的其他数据的信息。此类的 Reporting 实现使得配置其他文件输出格式变得简单。

属性

属性描述
reports
孵化中

此任务要生成的报告。

方法

方法描述
reports(configureAction)

允许通过闭包配置报告容器。

脚本块

无脚本块

属性详情

ConfigurationReports reports (只读)

注意:此属性处于孵化中,可能会在 Gradle 的未来版本中更改。

此任务要生成的报告。

方法详情

T reports(Action<? super T> configureAction)

允许通过闭包配置报告容器。

reports {
  html {
    required false
  }
  xml.outputLocation = "build/reports/myReport.xml"
}