I am using Gradle 4.2.1 for my web application. I would like to exclude some of the files/folders that resides under src/main/webapp.
So I tried this:
This works properly and excludes bower_components folder completely from war-file. Then I would like to remove bower_components folder except one file(angular.js):
Now everything from src/main/webapp is removed(index.html, etc). So no files are copied.