We're in the process of migrating projects from Java 8 to 11/17. For now, the target compilation level will remain 8 but I am already testing the build with JDK 17.
I learned that I have to change
<libs>
<lib>${java.home}/lib/rt.jar</lib>
<lib>${java.home}/lib/jsse.jar</lib>
<lib>${java.home}/lib/jce.jar</lib>
</libs>
to
<libs>
<lib>${java.home}/jmods</lib>
</libs>
Is there a Java version agnostic configuration syntax or some other way to tell the plugin to just use whatever is in java.home?
(I am also missing configuration examples for modern Java versions in the documentation)