Migrate uploadArchives task to another file

And only import it when a certain file ($HOME/.gradle/sonatype.properties)
exists.