Gradle - How to add war as dependency in simple java project
<p>I have a <code>war</code> file which have classes which needs to be used in my Java project. How can I add <code>war</code> file as dependency in this Java project? Gradle pick <code>jar</code> file but no <code>war</code> file. Is there a way to add <code>war</code> as dependency. </p>

<p><code>build.gradle</code></p>

<pre><code>group 'com.asklytics'
version 'unspecified'

apply plugin: 'java'

sourceCompatibility = 1.5

repositories {
    mavenCentral()
    maven { url "../$localMavenRepoRoot/local-maven-repo" }
}

dependencies {
    compile group: 'com.asklytics', name: 'asklytics-mailer', version: '1.0-SNAPSHOT', changing: true
    testCompile group: 'junit', name: 'junit', version: '4.11'
}
</code></pre>