Skip to content
Advertisement

How to exclude all files under a directory in Gradle?

JavaScript

For example, this one will exclude 1 file. But how to exclude all file under a directory?

like: org/apache/commons/codec/language/bm/
folder? . does not work 🙂

Advertisement

Answer

wild card can be used to enforce action to multiple file in directory. See this:-

JavaScript

You can also exclude a file/directory with out specifying the full path this way:-

JavaScript

Note: this will exclude any language/bm/ any where in the path

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement