Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
build: add jacoco for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaBrighi committed May 9, 2023
1 parent ca0cfea commit 89d5885
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,28 @@ plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.qa)
alias(libs.plugins.taskTree)
jacoco
}

subprojects {
apply(plugin = "org.danilopianini.gradle-kotlin-qa")
}

tasks.test {
finalizedBy(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
}

tasks.jacocoTestReport {
reports {
xml.required.set(false)
csv.required.set(false)
html.outputLocation.set(layout.buildDirectory.dir("jacocoHtml"))
}
}

buildscript {
repositories {
google()
Expand Down

0 comments on commit 89d5885

Please sign in to comment.