Upload and sign archives only if necessary/possible
Upload and sign archives only if necessary/possible

It is not possible to upload artifacts if sonatype configuration is not set.
Also there is no need to sign them.

The release task is conditioned too as we don't want to release without publishing
artifacts.

jcgay/gradle-notifier