Add support for publishing builds from gradle.

This is getting a bit repetitive :)