Add support for publishing builds from gradle.

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

Add support for publishing builds from gradle.