Trigger Sonar views plugin update from Gradle

Does anyone know how to trigger an update of the views plugin from Gradle? I’ve successfully built a view and created the aggregated results by running sonar-runner from command line. I can’t figure out how to trigger the ‘views’ command from Gradle.

I’d have a look at the SonarQube web service API. Not sure if they actually provide an API for this operation. If they do, simply write a task that makes the API call via HTTP.