From 098088cdfc0812326ccf77f442485faf89ffff55 Mon Sep 17 00:00:00 2001 From: guicamest Date: Sun, 5 Nov 2023 22:36:50 +0100 Subject: [PATCH] build(gradle): Apply and configure jacoco plugin --- core/build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/build.gradle b/core/build.gradle index f36589f..1011aa9 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -2,6 +2,7 @@ plugins { id 'org.jetbrains.kotlin.jvm' version '1.9.10' id 'java-library' id 'jvm-test-suite' + id 'jacoco' id "org.jlleitschuh.gradle.ktlint" version "11.6.1" } @@ -17,6 +18,10 @@ dependencies { ktlintRuleset project(":custom-ktlint-rules") } +jacoco { + toolVersion = "0.8.11" +} + ktlint { version = "1.0.1" } @@ -54,6 +59,10 @@ tasks.named('check') { dependsOn(testing.suites.integrationTest) } +jacocoTestReport { + dependsOn test +} + java { withSourcesJar() }