Added publishing configuration to gradle build.