Polish generated poms

Copying heavily from what other projects built with Gradle have done, this PR updates the generated poms so that they:
- Include provided and optional dependencies
- Include information required for publication to Maven Central