Hi,
When running jacoco on a multi-module Gradle build I'm getting many failures of the form: Caused by: java.lang.IllegalStateException: Cannot process instrumented class worker/org/gradle/api/JavaVersion. Please supply original non-instrumented classes. for various different classes.
I'm using Gradle wrapper 6.6.1, latest Jacoco plugin version.
From the root Gradle file:
tasks.withType<JacocoReport> {
sourceSets(sourceSets.main.get())
executionData(tasks.test.get())
reports {
xml.isEnabled = true
html.destination = file("${buildDir}/reports/jacoco/html")
xml.destination = file("${buildDir}/reports/jacoco/xml")
}
}
Then gradle clean cleanClasses buildTests results in these errors