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

Task GenerateReportTask failure

Open chirag-ji opened this issue 3 years ago • 1 comments

Hi,

On gradle 7.3.3 with JDK 17, a task is being failed while running gradle cobertura.

A problem was found with the configuration of task ':generateCoberturaReport' (type 'GenerateReportTask').
  - In plugin 'net.saliman.cobertura' type 'net.saliman.gradle.plugin.cobertura.GenerateReportTask' property 'reports' annotated with @Internal should not be also annotated with @Nested.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

I have following script: build.gradle

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "net.saliman:gradle-cobertura-plugin:4.0.0"
  }
}

apply(plugin: "net.saliman.cobertura")

Please have a look.

Thanks :)

chirag-ji avatar Jan 04 '22 03:01 chirag-ji

Duplicate with #176. I also have the same problem in gradle 7.1 version.

jclab-joseph avatar Jan 18 '22 05:01 jclab-joseph