I am using war plugin with Gradle 2.11 with following configuration
war {
exclude(’/assets/node_modules/*’)
exclude(’/assets/Gruntfile.js’)
exclude(’/assets/package.json’)
exclude(’/assets/js//*.js’)
exclude(’/assets/css//*.css’)
from("${project.webAppDirName}/assets/js") {
include "/*.min.js"
into “assets/js”
}
from("${buildDir}/grunt/js") {
include "**/*.min.js"
into “assets/js”
}
from("${project.webAppDirName}/assets/css") {
include "**/*.min.css"
into “assets/css”
}
from("${buildDir}/grunt/css") {
include "**/*.min.css"
into “assets/css”
}
}
When I am extracting the archieved WAR it has 2 WEB-INF directory one with lib and classes and one with just web.xml.