Only run tests using preview features on the right JDK if --enable-preview is present on the command line
Tests for jdk 14 and jdk 15 requires the "--enable-preview" on the command line.
With that, using gradle 6.7.1, with the PMD conf updated and if jacoco release a version compatible with Java 15 (still stuck with Java 14), the build can run on Java 15. The ultimate goal is to prepare the build to be able to run on Java 17 which is a LTS and which should not have any preview feature that changes the classfile.