Build using toolchains version, but run unit tests against various JDKs?

2017-03-03 Thread Russell Gold
I am using the toolchains plugin to ensure that the jars are produced with the correct JDK version; however, I want to be able to unit test against both that version and later versions. Is there a way to do that? The surefire plugin just selects the same version as was used to build. Thanks, Ru

Re: Build using toolchains version, but run unit tests against various JDKs?

2017-03-03 Thread Hervé BOUTEMY
yes, using the JDK selected by the toolchain plugin was until recently the intent of toolchain-plugin: help being consistent in every plugin requiring to use a JDK that is different from the JRE used to launch Maven now that it works as expected, there are new use cases arising where the toolch

Re: Build using toolchains version, but run unit tests against various JDKs?

2019-05-13 Thread Nick Stolwijk
Hello, I found this old mail about running test multiple times with different JDK's. Has there been any work done to make this possible? Or is the best possible solution to use the CI server to run multiple runs with different JDK's, perhaps using toolchain. With regards, Nick Stolwijk ~~~ Try

Re: Build using toolchains version, but run unit tests against various JDKs?

2019-05-13 Thread Robert Scholte
Hi Nick, it is the latter. The simplest solution is to build and test with the same Java version and configure all variants with your CI server, especially if you consider working with multirelease jars ;) Robert On 13-5-2019 12:26:42, Nick Stolwijk wrote: Hello, I found this old mail about