I need to specify the path to javac
in my gradle project. I can do this by adding the following to my build.gradle
file:
options.forkOptions.executable = '/home/mj/lib/jdk1.7.0_80/bin/javac'
The problem is that this file is shared in our repository and I do not want the setting to get pushed there. I tried putting it in my local gradle.properties
file, but it didn't work. Also setting gradle.java.home
does not affect this. I guess it's because gradle uses gradle.java.home
for java
and not for javac
, right? I also (hopelessly) tried setting a gradle.jdk.home
which (not surprisingly) didn't work either!
Is there any place outside the project that is included in build.gradle?