Fixed gradle problem which would cause build to fail on systems which do not have JAR signing and sonatype credentials set in gradle.properties.