http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Gradle
./gradlew install
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies { classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:<THE VERSION>' }
}
apply plugin: 'org.sonarqube'
https://plugins.gradle.org/docs/publish-plugin
./gradlew release
Copyright 2015-2017 SonarSource.
Licensed under the GNU Lesser General Public License, Version 3.0