I can't figure out to get this working.
What I want
I thought about having the
gradle.properties file, defining the variable. Something like
JAVA_HOME_FOR_MY_PROJECT=<path to my desired JDK>
What I don't want
JAVA_HOMEto the desired JDK
I could live with many suggestions:
use JAVA_HOME=<my special JDK path defined somewhere else defined>)
gradle.properties, system environment variable, ...) to the build process?
I have more than one JDK7 available and need to point to a special version (minimum JDK_u version).
Any answer is appreciated and I'm thankful for every hint to the right direction.
This question is related to
.gradledirectory in your
compileJava.options.fork = true compileJava.options.forkOptions.executable = '/path_to_javac'