Skip to content

Instantly share code, notes, and snippets.

@th-deng
Created January 23, 2020 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save th-deng/fcc6e9d913f362b0008b56eb5bc82fef to your computer and use it in GitHub Desktop.
Save th-deng/fcc6e9d913f362b0008b56eb5bc82fef to your computer and use it in GitHub Desktop.
Config JacocoTaskExtension
// groovy DSL
test {
jacoco {
destinationFile = file("$buildDir/jacoco/jacoco.exec")
}
}
// kotlin DSL
tasks.test {
extensions.configure(JacocoTaskExtension::class) {
destinationFile = file("$buildDir/jacoco/jacoco.exec")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment