# reports

abstract fun reports(@DelegatesTo(type = "T", strategy = Closure.DELEGATE_FIRST) closure: Closure): T(source)

Allow configuration of the report container by closure.

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

Content copied to clipboard

#### Return

The report container

#### Since

1.0

#### Parameters

closure

The configuration

abstract fun reports(configureAction: Action<in T>): T(source)

Allow configuration of the report container by closure.

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

Content copied to clipboard

#### Return

The report container

#### Since

3.0

#### Parameters

configureAction

The configuration