gradle-cobertura-plugin icon indicating copy to clipboard operation
gradle-cobertura-plugin copied to clipboard

Can't generate report on Gradle 7.0.1 and Java 16.

Open robert-close opened this issue 3 years ago • 3 comments

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:

      1. Remove the input annotations.
      2. 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.

robert-close avatar May 14 '21 13:05 robert-close

Same issue on gradle 7.0 and jdk11.

fengyc avatar Jun 23 '21 10:06 fengyc

Same here... I have this issue

themagiccog avatar Jul 07 '21 22:07 themagiccog

Hopefully https://github.com/stevesaliman/gradle-cobertura-plugin/pull/178 will be merged to resolve this problem

SingingBush avatar May 21 '22 11:05 SingingBush