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
jacoco-report-aggregation plugin misses versions during resolution when io.spring.dependency-management plugin is used #353
Comments
The problem can be reproduced without the dependency management plugin:
It does not occur if the resolution strategy is applied in all projects rather than in subprojects:
This also works with the dependency management plugin:
I think this will have to be addressed in the |
Thanks for the info, and sorry that I did not understand the problem better. |
When I use the
jacoco-report-aggregation
plugin together with theio.spring.dependency-management plugin
, and executegw testCodeCoverageReport
, I get the following error:Expected Behavior
There should be no resolution issues just by introducing the JaCoCO report aggregation plugin in a Spring Boot project.
Current Behavior
See error above.
Context
My company develops Spring Boot applications. One of the major problems I am having is figuring out the most ideal configuration for a JaCoCo report that does not miss coverage when tests cover code across subprojects, and is compatible with SonarQube. While I found one that works (and explained everything at gradle/gradle#8881 (comment)), it would be better to use a configuration that requires less code and is probably more future proof, i.e., by using the
jacoco-report-aggregation
plugin. But right now I'm stuck midway at reaching that solution because of resolution issues.It's not just my problem. See https://stackoverflow.com/questions/73727598/jacoco-report-aggregation-plugin-spring-dependency-management where others faced a similar issue. Their workaround they found was to use specific versions, which I don't want to enforce on my company's projects.
Steps to Reproduce
See demo project aggregation-bug.zip.
Type
gw testCodeCoverageReport
.(Sorry next time I'll try out the Gradle issue reproducer.)
Your Environment
Linux with Azul JDK 17, but shouldn't matter much.
The text was updated successfully, but these errors were encountered: