Polish generated POMs

Copying heavily from what other projects that use Gradle have done, this PR updates the generated pom files to:

- Include provided and optional dependencies
- Include information required for publication to Maven Central