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