The Gradle build task now supports SonarQube analysis.
SonarQube analysis for Java.
In October 2016, we updated the Maven task to support SonarQube analysis (See The Maven build task now simplifies SonarQube analysis). This time, we are pleased to announce an updated Gradle task which makes it easy for Java developers using Gradle to trigger a SonarQube analysis in Visual Studio Team
Services.
Using the Gradle task with SonarQube.
Just as for Maven, we have added a Code Analysis section in which you can now check the "Run SonarQube Analysis" checkbox, which then shows more options.
Reference:
https://devblogs.microsoft.com/devops/the-gradle-build-task-now-supports-sonarqube-analysis/