This example demonstrates how to analyze a simple project built with Gradle.
- SonarQube 7.9+
- A gradle wrapper is included that bundles gradle. All other required plugins will be pulled by gradle as needed.
Run the following command (updating the sonar.host.url property as appropriate):
- On Unix-like systems:
./gradlew -Dsonar.host.url=http://myhost:9000 sonarqube
- On Windows:
.\gradlew.bat -D'sonar.host.url=http://myhost:9000' sonarqube
To get the project test coverage computed, add gradle task jacocoTestReport
to your command line.