workaround on <packaging> not generated in POM. See: http://issues.gradle.org/browse/GRADLE-1285
Fix build scripts to upload to Sonatype