Using Gradle to build Jira plugins

Has anyone been able to use gradle to build Jira Plugins?

Thanks!