Anyone use Gradle to build a QT application?

I am looking into using Gradle to automate and simplify our build process for a cross platform QT application ran on Windows, Linux, and Mac. I was wondering what is the proper way to handle the creation of the moc_* , ui_* , and qrc_* files.