Hmmm … I think it should be possible to run the tests without compiling them … haven’t tried that however.
If we run mvn surefire:test it should only run the test plugin … however we probably need all configuration in “pluginManagement” blocks instead of “build” blocks. I could probably try it out … Chris Von: Haonan Hou <[email protected]> Datum: Mittwoch, 13. September 2023 um 03:48 An: [email protected] <[email protected]> Betreff: Re: [DISCUSS] Switch to Java 11 for building, but staying at Java 8 for compiling? Hi, I have a question. If we do that and hope to run UT/IT with jdk 8 by mvn commands, how to separate the compile and test with the different jdk versions? Best, Haonan On 2023/09/12 13:27:19 Christofer Dutz wrote: > Hi all, > > while updating some of our plugins, I ran into the problem, that some newer > versions of the plugins or dependencies only work with Java 11. > > In PLC4X we had similar problems. So, we decided to switch to at least Java > 11 for building, but still ensure the output is compatible with Java 8. > > This way we can benefit from plugin updates and still not loose compatibility. > > There are even plugins available to validate API compatibility with Java 8 > SDKs. > > Chris > >
