Skip to content

Commit

Permalink
Apply automatic excludes for all recursive target patterns
Browse files Browse the repository at this point in the history
This commit broadens the set of patterns that are considered "recursive", and thus
have automatic excludes applied for `.git`, `.gradle` and `build`.

Any target starting with `**/` is now considered recursive.

Fixes diffplug#835
  • Loading branch information
bigdaz committed Apr 8, 2021
1 parent aff7705 commit 76b1a0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private final FileCollection parseTargetIsExclude(Object target, boolean isExclu
if (isExclude) {
return matchedFiles;
}
if (targetString.startsWith("**/*") || targetString.startsWith("**\\*")) {
if (targetString.startsWith("**/") || targetString.startsWith("**\\")) {
List<String> excludes = new ArrayList<>();
// no git
excludes.add(".git");
Expand Down

0 comments on commit 76b1a0d

Please sign in to comment.