From 271a58d2afa3be958183a2579da30a2702a67392 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 3 Dec 2024 20:19:06 -0700 Subject: [PATCH] Exclude transitive deps provided by Minecraft --- build.gradle | 4 ++-- fabric/build.gradle | 4 ++-- neoforge/build.gradle | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 7228d670..c5041e27 100644 --- a/build.gradle +++ b/build.gradle @@ -35,8 +35,8 @@ dependencies { // work around minecraft (MDG) forcing ASM 9.3 which is incompatible with the above deps... components.withModule("net.neoforged:minecraft-dependencies", RemoveAsmConstraint.class) - api("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}") - api("ca.spottedleaf:yamlconfig:${rootProject.yamlconfig_version}") + api("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}") { setTransitive(false) } + api("ca.spottedleaf:yamlconfig:${rootProject.yamlconfig_version}") { setTransitive(false) } api("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") // todo: does cloth publish a platform-agnostic jar in mojang mappings? diff --git a/fabric/build.gradle b/fabric/build.gradle index bccf6bb5..9bed7e93 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -16,8 +16,8 @@ dependencies { shadow(project(":")) compileOnly(project(":")) - libs("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}") - libs("ca.spottedleaf:yamlconfig:${rootProject.yamlconfig_version}") + libs("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}") { setTransitive(false) } + libs("ca.spottedleaf:yamlconfig:${rootProject.yamlconfig_version}") { setTransitive(false) } libs("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") modImplementation "me.shedaniel.cloth:cloth-config-fabric:${rootProject.cloth_version}" diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 6d20b533..0943c301 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -49,8 +49,8 @@ dependencies { shadow(project(":")) compileOnly(project(":")) - libs("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}") - libs("ca.spottedleaf:yamlconfig:${rootProject.yamlconfig_version}") + libs("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}") { setTransitive(false) } + libs("ca.spottedleaf:yamlconfig:${rootProject.yamlconfig_version}") { setTransitive(false) } additionalRuntimeClasspath libs("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") implementation "me.shedaniel.cloth:cloth-config-neoforge:${rootProject.cloth_version}"