gradle-cobertura-plugin
gradle-cobertura-plugin copied to clipboard
Can't generate report on Gradle 7.0.1 and Java 16.
gradle -version
Gradle 7.0.1
Build time: 2021-05-10 16:08:58 UTC Revision: 67e618faef187783dadd03a34fdab9dc71b85b19 Kotlin: 1.4.31 Groovy: 3.0.7 Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020 JVM: 16.0.1 (Oracle Corporation 16.0.1+9-24) OS: Linux 5.4.0-48-generic amd64
java -version java version "16.0.1" 2021-04-20 Java(TM) SE Runtime Environment (build 16.0.1+9-24) Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
CLI Command: ./gradlew check coberturaReport
ERROR
Task :generateCoberturaReport FAILED
FAILURE: Build failed with an exception.
- What went wrong:
A problem was found with the configuration of task ':generateCoberturaReport' (type 'GenerateReportTask').
-
Type 'net.saliman.gradle.plugin.cobertura.GenerateReportTask' property 'reports' annotated with @Internal should not be also annotated with @Nested.
Reason: A property is ignored but also has input annotations.
Possible solutions:
- Remove the input annotations.
- Remove the @Internal annotation.
Please refer to https://docs.gradle.org/7.0.1/userguide/validation_problems.html#ignored_property_must_not_be_annotated for more details about this problem.
-
Same issue on gradle 7.0 and jdk11.
Same here... I have this issue
Hopefully https://github.com/stevesaliman/gradle-cobertura-plugin/pull/178 will be merged to resolve this problem