From ac70daa0663eba7de56d65acd0f8b9fcb3b308c5 Mon Sep 17 00:00:00 2001 From: Ruben Gees Date: Mon, 7 Jun 2021 23:27:57 +0200 Subject: [PATCH] Add explanatory comment to jacoco setup --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f3152ac..4684323 100644 --- a/build.gradle +++ b/build.gradle @@ -101,8 +101,10 @@ tasks.withType(KotlinCompile).all { } } +// Generates a Gradle properties file with the jacoco javaagent as a jvmarg for Gradle runner tests. +// This allows to generate coverage for code run in the forked JVM. task generateTestkitFiles { - def jacocoJar = configurations.jacocoAgent.asPath.toString() + def jacocoJar = configurations[JacocoPlugin.AGENT_CONFIGURATION_NAME].asPath.toString() def jacocoAgentJar = new JacocoAgentJar(project.services.get(FileOperations)).tap { agentConf = project.files(jacocoJar)