Sonar with Groovy failing with LinkageError


(andrew.oberstar) #1

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?


(Peter Niederwieser) #2

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.


(excentric) #3

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