Add support for publishing builds from gradle.

This is getting a bit repetitive :)
Merge pull request #3 from csmith/publish-from-gradle

Add support for publishing builds from gradle.