SonarQube Scanner for Gradle
User documentation
http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Gradle
Developer documentation
Install a SNAPSHOT in local Maven repository
./gradlew install
Using the plugin SNAPSHOT previously installed in local Maven repository
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies { classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:<THE VERSION>' }
}
apply plugin: 'org.sonarqube'
Release and deploy on Gradle plugin repository
https://plugins.gradle.org/docs/publish-plugin
./gradlew release
License
Copyright 2015-2018 SonarSource.
Licensed under the GNU Lesser General Public License, Version 3.0