Fixed gradle behavior, when no sonatype configuration is available