remal-gradle-plugins / jacoco-to-cobertura

Convert Jacoco XML reports to Cobertura format for importing in GitLab CI coverage report artifact
MIT License
3 stars 0 forks source link

Failed to apply in Gradle 8.7 #14

Closed dkowis closed 5 months ago

dkowis commented 5 months ago

I read that it was tested through latest gradle, and yet I ran into this. Not sure what to make of it:

> Failed to apply plugin 'de.jansauer.printcoverage'.
   > Could not find method enabled() for arguments [true] on Report xml of type org.gradle.api.reporting.internal.TaskGeneratedSingleFileReport.

Tried to use with:

❯ ./gradlew --version

------------------------------------------------------------
Gradle 8.7
------------------------------------------------------------

Build time:   2024-03-22 15:52:46 UTC
Revision:     650af14d7653aa949fce5e886e685efc9cf97c10

Kotlin:       1.9.22
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          17.0.11 (Amazon.com Inc. 17.0.11+9-LTS)
OS:           Mac OS X 14.5 aarch64

Got this, and was kinda surprised.

I can share the plugin list:

plugins {
    `java-library`
    `maven-publish`
    id("com.diffplug.spotless") version "6.25.0"
    `gitlab-repo` //An internal buildSrc plugin for publishing to gitlab
    jacoco
    id("name.remal.jacoco-to-cobertura") version "1.0.0"
    id("de.jansauer.printcoverage") version "2.0.0"
}
dkowis commented 5 months ago

I'm also an idiot and filed this in the wrong repo!