Complete documentation on how to analyze Gradle projects with SonarQube is available here.

To help you getting started, some project samples are available on github that can be browsed or downloaded: