Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Merging of Jacoco Reports Fails in Gradle 4.0 #20

Closed
romeara opened this issue Jun 13, 2019 · 2 comments
Closed

Merging of Jacoco Reports Fails in Gradle 4.0 #20

romeara opened this issue Jun 13, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@romeara
Copy link
Member

romeara commented Jun 13, 2019

Reports seem to have moved in newer versions of Gradle - investigate behavior in a Gradle 4.0 environment and verify if breaking changes need to be addressed for compatibility

@romeara romeara added the bug label Jun 13, 2019
@romeara romeara added this to the next-release milestone Jun 13, 2019
@romeara
Copy link
Member Author

romeara commented Jun 18, 2019

Clarification: It appears the report generates, but in HTML instead of XML...

@romeara
Copy link
Member Author

romeara commented Jun 18, 2019

It appears this is due to the underlying Gradle API changing enough that the plug-ins setup does not get applied when used in a Gradle 4.0+ project. This can be worked around by adding the following to the root project's configuration after applying the merge coverage report's plug-in:

mergeCoverageReports {
    reports {
        xml.enabled true
        html.enabled false
        csv.enabled false
        
        xml.destination = "${buildDir}/reports/jacoco/report.xml"
    }
}

As a result, this will need to wait until Gradle 3.x support is dropped for an integrated fix

@romeara romeara removed this from the next-release milestone Jun 18, 2019
romeara added a commit that referenced this issue Jun 18, 2019
GH-20 Document workaround for 1.x plug-ins to allow migration
@romeara romeara added this to the next-release milestone Jun 20, 2019
@romeara romeara self-assigned this Jun 20, 2019
romeara added a commit that referenced this issue Jun 20, 2019
…onfiguration

Resolves GH-20: Force correct report configuration for merge task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant