spring-attic / gradle-plugins

Gradle plugins for use in building and publishing open-source Spring projects, e.g. Spring Framework, Spring Integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specified JDK is not used to run the tests

wilkinsona opened this issue · comments

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

Fixed in f9eba00 Also note I added a Sample Project that can be used for performing sanity checks to ensure everything is working