Fixed a problem with build.gradle where if the property for uploadArchives didnt exist then the build with fail.