[GRADLE-888] Gradle Integration with Sonar Created: 03/Apr/10  Updated: 04/Jan/13  Resolved: 20/Mar/11

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.0-milestone-2

Type: New Feature
Reporter: Pratik Parikh Assignee: Peter Niederwieser
Resolution: Fixed Votes: 33


 Description   

It would be nice to have gradle integrate with sonar, currently there is no way this can be done. I have tried integrating gradle + hudson + sonar by means of hudson plugin configuration but that just does not work. Please see if this could be done, i would assume it could be big plus.



 Comments   
Comment by Gregory Boissinot [ 04/Apr/10 ]

Sonar is deeply coupled with Maven.
Sonar uses Maven plugins for launching metrics tools and it uses the Maven conventions for recording the generated XML files.

It would be great whether Sonar uses Gradle for launching metrics tools and for recording the genrated XML files (In addtion, Gradle makes its possible to use the Maven conventions, and it's easier)

Therefore this issue is not a Gradle issue but a Sonar issue.
I sugget raising a Sonar issue and I suggest closing this Gradle issue.

Comment by Hans Dockter [ 17/Apr/10 ]

As Gregory pointed out, there is not a good way yet to integrate Sonar with Gradle. But it is definitely something we would like to offer at one point once Sonar is a little bit more build tool agnostic.

Comment by Simon Brandhof [ 12/May/10 ]

We're working hard to decrease the coupling of Sonar with Maven. I hope the integration with alternate build tools like ant or gradle will be possible with versions 2.3 or 2.4.
What sounds missing in Gradle is one of the code coverage plugin already supported by Sonar (Cobertura, Clover or JaCoCo). Emma is not fully supported because its XML reports have no details for files. Do you know if it's planned ?

Comment by Adam Murdoch [ 12/May/10 ]

We definitely want to add support for coverage tools. Ideally, several would be supported, and you could choose which particular tool you want to use for a build. We could start with cobertura, if that helps Sonar integration.

Comment by Narcisa Pantilimon [ 21/Dec/10 ]

Any news about this integration?

Comment by Simon Brandhof [ 21/Dec/10 ]

Sonar 2.6 will allow to develop this gradle bootstrap. It is planned for February.

Comment by Pratik Parikh [ 11/Mar/11 ]

Thanks for providing this enhancement. I will test it out and will let you guys know.

Generated at Wed Jun 30 11:41:29 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.