Describe the bug
I want to cache the contents of build.gradle, build.gradle.kts, and similar files that describe Gradle configuration.
The pitfall is the file names can be customized, so I write **/*.gradle.kts and **/*.gradle masks.
However, the second mask unintentionally includes .gradle folder with temporary files.
I did try to exclude .gradle folder via !./.gradle, however it did not work.
Expected behavior
I would expect the globber to work in a Git-like fashion, so the first negation would deny descending to .gradle folder even though there are subsequent rules that match.