Compiling maven project to lower version than JDK configured with maven
I am trying to setup project with multi-release jar config, to support higher version Java APIs. Currently all the code is build and released with Java 11. We want to enable users who have Java 22 to use features specified under src/main/java22
, without affecting users who dont have Java 22.