-
Notifications
You must be signed in to change notification settings - Fork 67
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
Upgrade to JaCoCo 0.8.0 #106
Comments
I quickly tried the upgrade and got two compile errors one was easily fixed. By using The other compile error is also in the class FilteringClassAnalyzer on line 67 a new MethodAnalyzer is returned except in jacoco 0.8.0 the constructor for this method is not publicly accessible anymore. And I don't know what to change this to without spending more effort. Anybody else has a some more info? |
I also tried the same. But, it cannot be done as we are relying on the internal implementation. We will need to refactor the sbt-jacoco codebase. Anybody wants to take this up? |
I'm a developer from the JaCoCo project. I see sbt depends on internals because it implements its own filters for Scala artifacts. At JaCoCo we now have many filters in place, e.g. for Kotlin, Lombok etc. What about contributing Scala filters to the JaCoCo project? |
Thanks for the input @marchof. When I took over the project the filters were still in the early stages of development. Now that they've shipped I'll take a look and see what we can do! |
Hi @stringbean , I'm another developer from the JaCoCo project. While @marchof is right that ideally dependency on internals should be removed, to me (based on very limited knowledge of Scala) seems that you can easily override |
You solve this problem by overriding the Jacoco version in the plugins.sbt This also solves the problem of making Jacoco work with Java 10 |
It looks like this was achieved by #119 ? |
Yes, I think so |
when new version of sbt-jacoco will release with jacoco 0.8.2 |
when i did this i got the following error : |
@SahilAggarwalG I managed to get JaCoCo working with Java 11 / Scala 2.12.8 / SBT 1.2.8 by making the following changes:
(Maybe some of these can be left out, I haven't tried.) That said, getting |
Closing this as fixed in #119 |
JaCoCo 0.8.0 is out now: https://github.com/jacoco/jacoco/releases
sbt-jacoco currently depends on version 0.7.9
The text was updated successfully, but these errors were encountered: