plugins {
  jacoco
}

jacoco {
  toolVersion = "0.8.8"
}

tasks {
  named<JacocoReport>("jacocoTestReport") {
    dependsOn("test")

    reports {
      xml.required.set(true)
      csv.required.set(false)
      html.outputLocation.set(file("$buildDir/reports/jacoco/"))
    }
  }
}
