Working version of artifactory init script

We had to call the plugin using the fully-qualified class name in deploy.gradle
and have the classpath set at the init script level. Also added .gradle to
.gitignore.