Closed eldcn closed 2 weeks ago
but this doesn't stop you getting a coverage report, right?
@grahamegrieve Unfortunately the whole task fails. It is getting executed during connectedCheck
gradle task via mergeExtDexDebug
. I noticed that hapi-fhir
is using a new component for parsing: https://github.com/hapifhir/hapi-fhir/blob/master/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java. Would it be an option to extract the formaters in a separate module so that clients not using it can manually exclude?
FWIW I don't know what's causing this issue, but we run JaCoCo on the hapi-fhir
build too and it doesn't fail with this issue even though it obviously also links against that same JAR... So there is definitely something we're doing differently. Not sure what it could be though.
Might be worth looking at how jacoco is set up in the hapi-fhir build to see if you see any differences in terms of versions and flags and whatnot.
the hapi is not a new parser - both parsers have existed for many years, and have different purposes, and neither are going away. But Jacoco shouldn't fail outright... take it up with them.
We are using
org.hl7.fhir.r4
dependency in our project, and we are facing an issue with Jacoco when generating the coverage report:I saw this related issue here: https://github.com/hapifhir/hapi-fhir/issues/3268. Excluding the file from Jacoco configuration does not help. Any hints to overcome the issue are more then welcome. Thank you!