title: Gradle user home
body: <p>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?</p>
  
  <p>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.</p>
  
  <p>example printout:<br>
  [DEBUG] [org.gradle.BuildLogger] Gradle user home: /some/dir</p>