- 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.
Create a sonar-project.properties file to configure your analysis with the Sonar Runner.
Here is an example of sonar-project.properties file.
If you project is built with Maven, you need to add the 'sourceDirectory' property to the build section of your pom:
and the sonar.language property to the properties section of your pom:
Here is an example of pom.xml file.
Run a Sonar Analysis with the other Analyzers
It is possible to reuse previously generated report from CodeNarc by setting the sonar.groovy.codenarc.reportPath property.