注意:此類別正在孵化中,並可能在未來 Gradle 版本中變更。
用於報告任務的基底類別,此任務顯示關於屬性和關聯於變體/組態的相關資料的資訊。此類別實作 Reporting
以簡化配置額外檔案輸出格式。
屬性 | 描述 |
reports | 孵化中 此任務要產生的報告。 |
方法 | 描述 |
reports(configureAction) | 允許透過閉包配置報告容器。 |
T
reports
(Action
<? super T
>
configureAction)
Action
<? super T
>允許透過閉包配置報告容器。
reports {
html {
required false
}
xml.outputLocation = "build/reports/myReport.xml"
}