From 94237297a14902704298a95fff2fc87a3857107a Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 19 Dec 2020 23:25:02 +0800 Subject: [PATCH] Ignore case when filtering dependencies for buildPlugin task --- tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt b/tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt index 925d5d3c5..30cfefb41 100644 --- a/tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt +++ b/tools/gradle-plugin/src/MiraiConsoleGradlePlugin.kt @@ -117,8 +117,8 @@ public class MiraiConsoleGradlePlugin : Plugin { from(project.configurations.getByName("runtimeClasspath").copyRecursive { dependency -> for (excludedDependency in IGNORED_DEPENDENCIES_IN_SHADOW + miraiExtension.excludedDependencies) { - if (excludedDependency.group == dependency.group - && excludedDependency.name == dependency.name + if (excludedDependency.group.equals(dependency.group, ignoreCase = true) + && excludedDependency.name.equals(dependency.name, ignoreCase = true) ) return@copyRecursive false } true