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"
}