I am trying to use both the clover and the jacoco report but they conflict as clover inserts instrumentation into the class files which jacoco detects and doesn’t like.
I was thinking the best thing to do would be to run the test phase twice once with clover and once with jacoco. The problem is the clover dependency on the test task always runs and I can’t disable it. How can I remove it? I created a new task like:
task jacocoTest2 (type: Test) {
configurations.all {
exclude group: ‘clover’
}
}
But clover still runs. I want a copy of the test task without clover re-running on it.
Thank you for any pointers / help !!