Is it possible to specify separate filter patterns for different source directories of the resources SourceDirectorySet

I have two directories containing resources and they are both configured on the ‘resources’ SourceDirectorySet . However I need to specify separate include/exclude patterns but it seems that the patterns are applied to all source directories of the SourceDirectorySet . Is there a way to filter each source directory separately?

It’s a known limitation that we intend to fix at some point.