title: Can there be multiple war tasks in build.gradle to generate multiple wars with different dependencies
body: <p>I am trying to do similar thing as: <a href="https://stackoverflow.com/questions/13077694/create-multiple-war-files-with-different-dependencies-in-gradle">Create multiple .WAR files with different dependencies in Gradle</a></p>
  
  <p>But the solution given in this post is not working. I am using gradle 2.5 to achieve this.</p>
  
  <p>Expectation is to generate 3 different wars as output of the script. I created a simplest project with minimal dependencies. When i execute build.gradle, it just gives me single war named: Test-1.0.war. Test is name of the sample project i created.</p>
  
  <p>Here is build.gradle:</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'war'
  
  sourceCompatibility = 1.5
  version = '1.0'
  
  task createStandardWar(type: War, dependsOn: classes) {
      baseName = 'standard'
      destinationDir = file("$buildDir/libs")
      classifier = 'Functional'
  }
  
  task createStandardWarQasOnly(type: War, dependsOn: classes) {
      baseName = 'standard-qas-only'
      destinationDir = file("$buildDir/libs")
      classifier = 'Functional2'
  }
  
  task createStandardWarQasAndLog4J(type: War, dependsOn: classes) {
      baseName = 'standard-qas-log4j'
      destinationDir = file("$buildDir/libs")
      classifier = 'Functional3'
  }
  
  task createDists(dependsOn: [createStandardWar, createStandardWarQasOnly, createStandardWarQasAndLog4J])
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
      testCompile group: 'junit', name: 'junit', version: '4.+'
  }
  
  test {
      systemProperties 'property': 'value'
  }
  </code></pre>