Include files in war archieve

Hi

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:

war {
exclude ‘bower_components’
}

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):

war {
exclude 'bower_components’
include ‘bower_components/angular/angular.js’
}

Now everything from src/main/webapp is removed(index.html, etc). So no files are copied.

Please advise.