Closed bjornvester closed 5 years ago
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 may decide to drop compatibility with older Gradle versions and only maintain Gradle 4 and later.
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, I am facing same problem. I have migrated Springboot 1.5.X to 2.1.X and gradle 3.2.1 to 5.6. Getting this error in sonarqube build..
What went wrong: A problem occurred configuring project ':apps:console'.
Failed to notify project evaluation listener. org/gradle/api/internal/AsmBackedClassGenerator
Try: Run with --debug option to get more log output. Run with --scan to get full insights.
Caused by: java.lang.NoClassDefFoundError: org/gradle/api/internal/AsmBackedClassGenerator at com.bmuschko.gradle.clover.CloverPlugin.createInstance(CloverPlugin.groovy:278)
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: