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
Running on Gradle 5.2 throws a NoClassDefFoundError: AsmBackedClassGenerator #126
Comments
I think I will have to release a Gradle 5.x version of the plugin. This is most likely due to the fact that it is still largely written in Groovy and Groovy is known to cause issues when compiled code is moved to newer Groovy base. |
I investigated this problem, it is not a simple change. I will have to create a Gradle 5.x only version of this plugin so there is a way forward without leaving Gradle 4.x unsupported. I will probably create one more version 4.x compatible with the fixes I have in the pipeline right now. |
Hi Alex,
Caused by: java.lang.NoClassDefFoundError: org/gradle/api/internal/AsmBackedClassGenerator |
The only way to get this error is if you are using plugin version 2.2.1. We have released several versions since. The version that fixed compatibility with Gradle 5 and Gradle 6 is 2.2.2 or later. Upgrade the plugin to the latest version for best results. I. am using this plugin with Gradle 6 builds and no problems. |
Thanks Alex. I am getting different error after upgrade the version 2.2.2. Do I need to use specific version of org.openclover:clover plugin for version 2.2.2. Currently, I am using org.openclover:clover:4.2.0. ERROR: groovyc org codehaus groovy control multiplecompilationerrorsexception startup failed during import of one of the class |
OpenClover cannot compile Java greater than version 9. You should be using the latest available OpenClover at all times anyway. You need to provide more information about the issue but my guess is that you are using Java features from version greater than 9. There are also some known issues with lambda expressions. As I said I need more information. In any case this is a resolved issue, you can open a new issue if you want to discuss with more details. |
The plugin no longer works for Gradle 5.2 due to the reliance on an internal class AsmBackedClassGenerator in package org.gradle.api.internal, which has been moved to org.gradle.internal.instantiation.
Thank you for maintaining the plugin by the way. Much appreciated :)
Stack trace:
The text was updated successfully, but these errors were encountered: