OGM-651 CI fails with JDK 8 

https://hibernate.atlassian.net/browse/OGM-651

This patch will detect the JDK used for the build and will disable/enable the modules accordingly.

JDK 8: Disable doclint for javadoc generation
JDK 9: Disable documentation and distribution build, enforce JDK 7 or JDK 8 for the distribution
Oh wow, you fixed all the warnings. Tough job ;-)

I would have gone for the errors only, only these will make DocLint fail the build. As you say, all the param stuff etc. is not neccessarily helpful. Maybe for the API, but for the internal stuff...