ah, I see now, the error is coming from the PMD plugin (targetJdk = project.targetCompatibility). If the plugin lets us pick the tool version, it should support java 1.8 (and any future version of java as well). PMD has supported java 8 for a while now.
Looking at the code it seems the value of ‘targetJdk’ is only even used for PMD versions < 5. In this case you can simply avoid setting its value (in which case the PMD plugin would default to 1.4) since it will be ignored anyway.
Where is the right place to open a bug report for this, so that the targetJdk property in the plugin is ignored if the toolVersion is >5 ? Or if not ignored, at least a better error message.