We do not currently have a native plugin for Gradle so using the CLI jar is the best approach. Some information regarding collecting dependencies and running the CLI jar is available in our help [0]. Dependent on your project, collecting the dependencies may not be required as they could be available in the build directory. An example of a JavaExec task for the CLI is available [1].
[0] https://help.sonatype.com/pages/viewpage.action?pageId=5406843
[1] https://gist.github.com/kellyrob99/98bde818e60787113a4fce26d515d22c#file-androidiqbuild-gradle-L55