From 483db4642f8bbcbc47d2394348a2603d7f31a572 Mon Sep 17 00:00:00 2001 From: Cat Core Date: Wed, 24 Apr 2024 18:37:10 +0200 Subject: [PATCH] Fix transitive dependencies related issues in pom --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index c2b40c659..66226bc16 100644 --- a/build.gradle +++ b/build.gradle @@ -225,6 +225,11 @@ def moduleDependencies(Project project, List projectNames) { depNode.appendNode("artifactId", getProjectMavenName(it)) depNode.appendNode("version", it.version) depNode.appendNode("scope", "compile") + + def exclusionsNode = depNode.appendNode("exclusions") + def exclusionNode = exclusionsNode.appendNode("exclusion") + exclusionNode.appendNode("groupId", "net.legacyfabric.legacy-fabric-api") + exclusionNode.appendNode("artifactId", "*") } } }