Adds gradle configs for publishing.

Publishing to sonatype.