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
gradle
WEB-INF
see this post and comments
war { // remove classes from the classpath <<<<<<< classpath = configurations.runtime // add them in explicitly, with the filtering applied webInf { into('classes') { from sourceSets.main.classes exclude 'org/gradle/sample/excludeme/**' } } }