This works well when running Gradle from the root project directory, but breaks when invoking Gradle from a subproject directory since the JVM treats the path relative to the current working directory.
I want to be able to specify a path relative to the root project, and let Gradle expand it when reading the file. Something like this
I am open to contributing such a feature. I am not aware of any existing "expansions" in the properties files. Is there any similar already?
Current Behavior (optional)
No response
Context
I have tried re-setting it to an absolute path from the root build.gradle. Then it is possible to start the Gradle daemon from the root project directory, and then run commands from sub-projects, as long as the same daemon is reused. However, this leads to non-deterministic failures on occasions.
Expected Behavior
Hi,
We need to run Gradle with a custom
cacerts
file with company-specific certificates, and specify this ingradle.properties
. Like:This works well when running Gradle from the root project directory, but breaks when invoking Gradle from a subproject directory since the JVM treats the path relative to the current working directory.
I want to be able to specify a path relative to the root project, and let Gradle expand it when reading the file. Something like this
Would this be feasible?
I am open to contributing such a feature. I am not aware of any existing "expansions" in the properties files. Is there any similar already?
Current Behavior (optional)
No response
Context
I have tried re-setting it to an absolute path from the root
build.gradle
. Then it is possible to start the Gradle daemon from the root project directory, and then run commands from sub-projects, as long as the same daemon is reused. However, this leads to non-deterministic failures on occasions.