Is there a way to access the gradle user home directory which could be set by GRADLE_USER_HOME or -g somedir or the default value from within my build.gradle file?
If I run a gradle build with --debug it prints out the user home but I can't find a way to access it by any variable.
example printout:
[DEBUG] [org.gradle.BuildLogger] Gradle user home: /some/dir
In you gradle build script you can access it via:
project.gradle.gradleUserHomeDir
See here for more details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With