mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Ignore case when filtering dependencies for buildPlugin task
This commit is contained in:
parent
cb2f7d5eb5
commit
94237297a1
@ -117,8 +117,8 @@ public class MiraiConsoleGradlePlugin : Plugin<Project> {
|
|||||||
|
|
||||||
from(project.configurations.getByName("runtimeClasspath").copyRecursive { dependency ->
|
from(project.configurations.getByName("runtimeClasspath").copyRecursive { dependency ->
|
||||||
for (excludedDependency in IGNORED_DEPENDENCIES_IN_SHADOW + miraiExtension.excludedDependencies) {
|
for (excludedDependency in IGNORED_DEPENDENCIES_IN_SHADOW + miraiExtension.excludedDependencies) {
|
||||||
if (excludedDependency.group == dependency.group
|
if (excludedDependency.group.equals(dependency.group, ignoreCase = true)
|
||||||
&& excludedDependency.name == dependency.name
|
&& excludedDependency.name.equals(dependency.name, ignoreCase = true)
|
||||||
) return@copyRecursive false
|
) return@copyRecursive false
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user