New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to read execution data when using jacoco-report-aggregation #20532
Comments
If you run In the Now, the plugin should handle this case and not try to grab the jar file when no exec data exists. I'm still investigating this. |
Quick update: I've isolated this bug as happening because of an interaction between the |
OK, we've got this figured out and a workaround ready for 7.5 - see the linked PR for details. You can solve this until 7.5 by just adding the |
Looks like there is already a Kotlin issue for this, planned to be fixed in 1.7.0: https://youtrack.jetbrains.com/issue/KT-51913/Gradle-plugin-should-not-add-attributes-to-the-legacy-configurat Probably worth an upvote if you're being bit by this. |
@3flex I don't think it will solve this issue. The |
#20577 was meant to fix this issue, and was merged for Gradle 7.5, but seems this issue wasn't closed automatically? I think this issue can be closed, and included in 7.5 RC1 milestone. |
Agreed, thanks for pointing that out! |
Expected Behavior
The task to create the code coverage report (
:codeCoverageReport
) succeeds.Current Behavior
The task to create the code coverage report (
:codeCoverageReport
) fails with the following error:It seems that project dependencies get included in the configuration containing the JaCoCo exec data.
Context
I have a multi-module Gradle project where multiple subprojects produce code coverage reports via JaCoCo. Via the
jacoco-report-aggregation
plugin, I try to aggregate the reports of the subprojects into a single report (using the root project).Steps to Reproduce
See the following repository for a reproducer: https://github.com/fabianishere/gradle-repro
When running
./gradlew :codeCoverageReport
, the build will fail with the following problem:The text was updated successfully, but these errors were encountered: