Skip to content

Commit

Permalink
Fix empty configurations adding empty string to BSL ignore list
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Jan 10, 2024
1 parent ad9e77e commit b830e13
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ private static Provider<String> createIgnoreList(Project project, Configuration.
return project.provider(() -> {
StringBuilder ignoreList = new StringBuilder(1000);
for (Configuration cfg : configurations) {
ignoreList.append(cfg.getFiles().stream().map(File::getName).collect(Collectors.joining(","))).append(",");
if (!cfg.isEmpty()) { // Skip empty else we will end up with ",," in the ignore list and all entries will be ignored.
ignoreList.append(cfg.getFiles().stream().map(File::getName).collect(Collectors.joining(","))).append(",");
}
}
ignoreList.append("client-extra").append(",").append(project.getName()).append("-");
return ignoreList.toString();
Expand Down

0 comments on commit b830e13

Please sign in to comment.