title: How to access environment variables in gradle java build script
body: <p>How can I access environment variables (either user level or system level) in gradle java build script.<br>
  I am new to gradle and I am trying to build my project using the gradle.<br> Presently I have hardcoded the path of third party jars as shown in the script below</p>
  
  <pre><code>repositories {
     flatDir  {
             dirs 'D:\\lib'
     }
  }
  </code></pre>
  
  <p>I have created an environment variable <code>"Third_Party" in enviroment variable</code>:</p>
  
  <pre><code>Third_Party=D:\lib
  </code></pre>
  
  <p>How can I use this variable i.e. "Third_Party" instead of hardcoding the library path in script.<br>
  Please tell the exact syntax</p>