Sonar with Groovy failing with LinkageError

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

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 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