There is my task:
task fatJar(type: Jar) {
exclude {
it.name.startsWith('assets')
}
from 'build/tmp/hello' // assets/application.css
}
I want to exclude assets
directory from my source code and add assets
directory from build/tmp/hello
path, but exclude filter prevent it, how to solve this issue?