configure uploadPublished only when it is really required. enables
running tasks like "jar" and "test" without having to configure nexus
settings