From 96d3cf8699f31721b57170eb7f719e6cb64e3ef9 Mon Sep 17 00:00:00 2001 From: Technici4n <13494793+Technici4n@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:43:20 +0100 Subject: [PATCH] Fix empty configurations adding empty string to BSL ignore list (#101) --- .../gradle/platform/extensions/DynamicProjectExtension.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/src/main/java/net/neoforged/gradle/platform/extensions/DynamicProjectExtension.java b/platform/src/main/java/net/neoforged/gradle/platform/extensions/DynamicProjectExtension.java index a4e0ee8c5..4897f582b 100644 --- a/platform/src/main/java/net/neoforged/gradle/platform/extensions/DynamicProjectExtension.java +++ b/platform/src/main/java/net/neoforged/gradle/platform/extensions/DynamicProjectExtension.java @@ -771,7 +771,9 @@ private static Provider 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();