I am using gradle
war plugin, I am trying to exclude some directories inside WEB-INF
directory while packing a war, but the excludes don\'t seem to
To exclude a folder named metadata
contained in WEB-INF
use the following code in your build.gradle file:
war.rootSpec.exclude("**/WEB-INF/metadata/")
or depending on your coding style you could also use:
war
{
rootSpec.exclude("**/WEB-INF/metadata/")
}
This link on the gradle discussion forum may also be of help