Replace publishing logic with nexus plugin

In order to install the jar for internal testing, I was required to supply a sonatypeUsername/sonatypePassword. I took this opportunity to replace this handcrafted logic with the gradle-nexus-plugin: https://github.com/bmuschko/gradle-nexus-plugin

I'll let you know how internal testing of the jenkins-job-dsl goes for me.