title: In Gradle, is there a better way to get Environment Variables?
body: <p>In several Tasks, I reference jars in my home folder.</p>
  
  <p>Is there a better way to get Environment Variables than</p>
  
  <pre><code>ENV = System.getenv()
  HOME = ENV['HOME']
  
  task copyToServer(dependsOn: 'jar', type: Copy) {
  
   from 'build/libs/'
   into HOME + "/something/plugins/"
  }
  </code></pre>
  
  <p>This sets $HOME but I was hoping that I missed some magic from the documentation. </p>