Open justfortherec opened 3 years ago
Yes, the JaCoCo plugin also uses task/configuration avoidance now. This is an issue also in other places, see #18 for example. In this case, the Gradle version used for this plugin needs to be updated to at least 6.1 in order to have this new API available.
P.S.: I also assume you mean version 7.3, right?
I have to drop this plugin due to its incompatibility with Gradle 8.0, with the following error:
* What went wrong: |
| An exception occurred applying plugin request [id: 'org.gradle.jacoco'] |
| > Failed to apply plugin 'org.gradle.jacoco'. |
| > Could not create task ':backend:jacocoTestReport'. |
| > No signature of method: org.gradle.api.reporting.internal.TaskGeneratedSingleFileReport.enabled() is applicable for argument types: (Boolean) values: [true]
There is a fix in #22
When upgrading my local gradle setup to version 3.7 I noticed this warning:
The culprit seems to be https://github.com/jansauer/gradle-print-coverage-plugin/blob/master/src/main/groovy/de/jansauer/printcoverage/PrintCoveragePlugin.groovy#L13
The proposed solution is to use
required
instead ofenabled
.