build.gradle: more modifications

Add Sonatype upload capabilities, hopefully!
build.gradle: fix one error, rename an obsolete method