Exclude folders with pattern in Native source sets?

Is it possible to exclude certain folders matching a pattern from native source sets?

Regards,
Ante

Yep, the source {} block is backed by a SourceDirectorySet, so you can use exclude with Ant patterns like include.