Changed the build to not require the sonatype authentication to be
defined unless
you are actually publishing.