Update .gitignore to add some common excludes.
Add the java maven deploy gradle plugin.

This is a simple gradle plugin which can be included to deploy artifacts
from java projects into a maven repository.

It also supports uploading to a Nexus staging repository if required.