Sonar with Groovy failing with LinkageError

I’m getting the same error mentioned in this StackOverflow post:

http://stackoverflow.com/questions/9586666/gradle-sonar-groovy-fail

Any thoughts on the issue?

The best way to get this problem solved would be to improve the Sonar client library so that it no longer forces the integrator (Gradle in this case) on its class path.

I’ve forked the sonar-groovy-plugin here https://github.com/excentric/sonar-groovy-plugin This fork allows sonar to analyse groovy code through gradle

Your other options is to crack open the sonar-groovy-plugin jar and add the following attribute to the manifest:

Plugin-ChildFirstClassLoader: true