Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Install the Groovy plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
  2. Restart the Sonar server


Run a Sonar Analysis with the Sonar Runner (Recommended Way)

To launch a Sonar analysis of your Groovy project, use the Sonar Runner.

A sample project is available on github that can be browsed or downloaded: /projects/languages/groovy/groovy-sonar-runner.

Run a Sonar Analysis with the other Analyzers

Maven and Ant can also be used to launch analysis on Groovy projects.

A Maven sample project is available on github that can be browsed or downloaded: /projects/languages/groovy/groovy-maven.

Advanced Usage

It is possible to reuse previously generated report from CodeNarc by setting the sonar.groovy.codenarc.reportPath property.