Specified JDK is not used to run the tests
wilkinsona opened this issue · comments
Andy Wilkinson commented
The plugin checks that a given JDK7_HOME
or JDK8_HOME
exists, but it doesn't actually use the JDK to run the tests; as far as I can tell the default JDK is still used. To illustrate this, I did the following:
$ mkdir ~/fakeJdk/bin
$ touch ~/fakeJdk/bin/java
$ ./gradlew clean springioCheck -PJDK7_HOME=/Users/awilkinson/fakeJdk
I would expect the springioJDK7Test
task to fail as it's being run with a bogus java executable but it ran successfully
Rob Winch commented
Fixed in f9eba00 Also note I added a Sample Project that can be used for performing sanity checks to ensure everything is working