title: Add a single file to gradle resources
body: <p>I'm using the config var plugin for heroku (see <a href="https://devcenter.heroku.com/articles/config-vars" rel="nofollow noreferrer">https://devcenter.heroku.com/articles/config-vars</a>).</p>
  
  <p>It allows me to use a .env file which I do not push to source control to define the heroku environment.</p>
  
  <p>So when I'm on heroku, I can access sensible information via System.properties.</p>
  
  <p>In dev, I would like to read from this file so it would be best if it were on my classpath.</p>
  
  <p>The .env file is at the root of my project so I cannot use something like this :</p>
  
  <pre class="lang-groovy prettyprint-override"><code>sourceSets {
      main {
          resources {
              srcDirs = ['src/main/resources', '/']
          }
      }
  }
  </code></pre>
  
  <p>What is the simplest way to include a single file into gradle resources ?</p>