Gradle - add directory to classpath : <p>My application requires that a <code>\config</code> directory be available on the classpath when it looks for configurations files under the directory. I currently have dependencies configured like so, though this is probably not the correct way to make a directory available to my application:</p>

<pre><code>dependencies {
    ... //runtime, compile dependencies pulled from repositories
    runtime files('config')
}
</code></pre>

<p>I am using the <code>application</code> plugin to create a standalone zip for my project. If my <code>\config</code> directory has <code>\config\subdir</code>, <code>file1</code>, <code>file2</code>, then the plugin produces a <code>build\install</code> directory with the following structure:</p>

<pre><code>| build
| --|install
| ----|bin
| ------ projectName
| ------ projectName.bat
| ----|lib
| ------ dependency1.jar
| ------ dependency2.jar
| ------|subdir
| ------ file1
| ------ file2
</code></pre>

<p>This does not work for my application because it explicitly expects a <code>\config</code> directory</p>

<p>However, this is the directory structure that I need:</p>

<pre><code>| build
| --|install
| ----|bin
| ------ projectName
| ------ projectName.bat
| ----|lib
| ------ dependency1.jar
| ------ dependency2.jar
| ----|config
| ------|subdir
| ------ file1
| ------ file2
</code></pre>

<p>How can I make gradle add another directory to the build and specify it as part of the classpath for the generated startup scripts?</p>
