You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I apply jacoco-report-aggregation plugin to a project and use jacocoAggregation to declare project dependencies, the allCodeCoverageReportClassDirectories configuration will resolve to class directories for the dependencies, not JAR files.
Current docs say the allCodeCoverageReportClassDirectories configuration
Consumes the project dependencies to from the jacocoAggregation configuration to collect all classes directories.
Current Behavior
allCodeCoverageReportClassDirectories configuration resolves to JAR output of the dependencies declared with jacocoAggregation.
Context
The project I use embeds some dependencies in the generated JAR of one of the projects. These are then reported in the generated report. If class directories were resolved the dependencies bundled in the JAR would be correctly excluded.
I also can't control which project classes are reported either as it's not possible (or easy?) to exclude elements of the JAR file.
Steps to Reproduce
I have simply added a task to print the resolved files from the allCodeCoverageReportClassDirectories configuration in code-coverage-report project - run ./gradlew :code-coverage-report:printAllCodeCoverageReportClassDirectories to see the resolved files are JARs.
Expected Behavior
When I apply
jacoco-report-aggregation
plugin to a project and usejacocoAggregation
to declare project dependencies, theallCodeCoverageReportClassDirectories
configuration will resolve to class directories for the dependencies, not JAR files.Current docs say the
allCodeCoverageReportClassDirectories
configurationCurrent Behavior
allCodeCoverageReportClassDirectories
configuration resolves to JAR output of the dependencies declared withjacocoAggregation
.Context
The project I use embeds some dependencies in the generated JAR of one of the projects. These are then reported in the generated report. If class directories were resolved the dependencies bundled in the JAR would be correctly excluded.
I also can't control which project classes are reported either as it's not possible (or easy?) to exclude elements of the JAR file.
Steps to Reproduce
I have simply added a task to print the resolved files from the
allCodeCoverageReportClassDirectories
configuration incode-coverage-report
project - run./gradlew :code-coverage-report:printAllCodeCoverageReportClassDirectories
to see the resolved files are JARs.sample_jvm_multi_project_with_code_coverage_standalone-kotlin-dsl.zip
Your Environment
Build scan URL:
The text was updated successfully, but these errors were encountered: