I use gradle.properties to use the daemon and to set up a proxy.
According to the User Guide there are three options:
from gradle.properties in project build dir.
from gradle.properties in gradle user home.
from system properties, e.g. when -Dsome.property is set on the command line.
I COULD put this file into every gradle project, but I’d rather not do that.
In my initial work in a non-jenkins environment, I just used the second option and put it in $HOME/.gradle/
(Actually, is that incorrect documentation? The second option is telling me to put it in $HOME, not in $HOME/.gradle, which is where I have it and it works there.)
Whether the second option is in $HOME or $HOME/.gradle, it won’t work for me because I have no $HOME directory. Well, of course there is a home directory ( ~ ) but it’s not my Jenkins instance’s home, it’s the home directory for every Jenkins instance hosted there. And the third option is a path I’d rather not go down either.
So is there any other option for making these settings (BEFORE Gradle starts)?