From 1f578ed1017a07cbd7af1a60bd25ecb88d5ad364 Mon Sep 17 00:00:00 2001 From: shartte Date: Mon, 27 Nov 2023 07:34:50 +0100 Subject: [PATCH] Use the full project path to decide whether dynamic project management should apply the platform plugin. (#58) --- .../net/neoforged/gradle/platform/PlatformSettingsPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/src/main/java/net/neoforged/gradle/platform/PlatformSettingsPlugin.java b/platform/src/main/java/net/neoforged/gradle/platform/PlatformSettingsPlugin.java index 79ded2f75..e11c029ad 100644 --- a/platform/src/main/java/net/neoforged/gradle/platform/PlatformSettingsPlugin.java +++ b/platform/src/main/java/net/neoforged/gradle/platform/PlatformSettingsPlugin.java @@ -46,7 +46,7 @@ public void execute(@NotNull Project project) { final Optional match = projectManagementExtension.getDynamicProjects(). stream() - .filter(desc -> desc.getName().equals(project.getName())) + .filter(desc -> desc.getPath().equals(project.getPath())) .findFirst(); match.ifPresent(desc -> project.getPlugins().apply(PlatformPlugin.class));