title: web.xml in war getting misplaced using gradle
body: <p>My <code>build.gradle</code> looks somewhat like this. Its so clear that my <code>web.xml</code> is in <code>WebContent/WEB-INF</code>, then why does the war get created with <code>web.xml</code> under <code>WebContent/WEB-INF/lib</code> folder ?</p>
  
  <p>I inflated the war, and got this</p>
  
  <blockquote>
    <p>inflating: WEB-INF/lib/web.xml   </p>
  </blockquote>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'war'
  
  repositories {
      jcenter()
  }
  
  dependencies {
      compile 'org.slf4j:slf4j-api:1.7.21'
      compile group: 'org.apache.tomcat', name: 'tomcat-catalina', version: '8.5.0'
      compile group: 'log4j', name: 'log4j', version: '1.2.16'
  
      compile files('WebContent/WEB-INF/lib/coregeneral.jar')
      compile files('WebContent/WEB-INF/lib/operationserverendpoints.jar')
  
      compile files('WebContent/WEB-INF/web.xml')
      testCompile 'junit:junit:4.12'
  }
  
  sourceSets {
      main {
          java {
              srcDir 'src'
          }
      }
  }
  </code></pre>