Hi Everyone, we are using gradle 8.1.1 , before using this we were able to generate jacoco report. BUt now previous method is deprecated. By seeing document we mentioned below, but if we mention xml.destination its failing in build stage with below error:
FAILURE: Build failed with an exception.
1112* Where:
1113Build file '/builds/sdu-in-mfs/COMMON/mcom-am-ca-ussd/build.gradle' line: 111
1114* What went wrong:Some of the file system contents retained in the virtual file system are on file systems that Gradle doesn't support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
1115A problem occurred evaluating root project 'mcom-am-ca-ussd'.
1116> Cannot read write-only property: destination
We also tried by removing the detsination , but report is not getting generated in expected path.
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.8.7"
}
jacocoTestReport {
dependsOn test
doLast {
println "Generating JaCoCo report"
}
reports{
xml{
enabled true
}
}
}