-
Notifications
You must be signed in to change notification settings - Fork 38
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
scoverage 7.0.0 plugin fails checkScoverage call with java.lang.AbstractMethodError #173
Comments
When using the syntax for multiple checks, one has to specify the coverage type:
If no multiple checks are required, then it is possible to specify just the minimum rate:
If the problem still persists after fixing the syntax, please add the output |
I am still having the same problem with
gradle output below:
|
I was able to reproduce the issue and it seems to be a problem with moving from Gradle 6 to 7. Running a sample project with Gradle 6.8 and AdoptOpenJDK 11 yields the error:
Upgrading to Gradle 7 in the project resolves the issue; alternatively, using the plugin version before 6 also seems to resolve the issue. It looks like moving the plugin to be built with Gradle 7 instead of 6, which was included in version 6 of the plugin (see diff between 5 and 6), broke the plugin for builds with Gradle version less than 7. This looks to be a problem with Gradle as can be seen in other plugins here and here. I'll see about opening a ticket in the Gradle repository. For now, @pra91, can you upgrade your Gradle to 7 and see if it helps? |
When using 7.0.0 of the plugin I am unable to run checkScoverage in my builds.
running ./gradlew checkScoverage runs my test cases but then fails with the following stacktrace. Running reportScoverage works as expected
Gradle file:
The text was updated successfully, but these errors were encountered: