Add artifactory plugin.

 - Consolidate plugin declarations into the new `plugins {}` closure.
 - Also add the `java-gradle-plugin` which is supposedly handy for
   gradle plugins.