From 254b33125905b6a2167ea00447d9be6f426a3118 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 756a467a..aa1ae1fc 100644 --- a/build.gradle +++ b/build.gradle @@ -22,8 +22,8 @@ def getGitCommit = { -> dependencies { modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" - 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}") modImplementation "me.shedaniel.cloth:cloth-config:${rootProject.cloth_version}" diff --git a/fabric/build.gradle b/fabric/build.gradle index 8531d413..f1b24706 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -17,8 +17,8 @@ dependencies { runtimeOnly(project(":").sourceSets.main.output) modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" - 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 14027e1a..7c74194a 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -21,8 +21,8 @@ dependencies { add('shadow', project([path: ":", configuration: "namedElements"])) neoForge "net.neoforged:neoforge:${rootProject.neoforge_version}" - shadow("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}") - shadow("ca.spottedleaf:yamlconfig:${rootProject.yamlconfig_version}") + shadow("ca.spottedleaf:concurrentutil:${rootProject.concurrentutil_version}") { setTransitive(false) } + shadow("ca.spottedleaf:yamlconfig:${rootProject.yamlconfig_version}") { setTransitive(false) } shadow("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") forgeExtra("org.yaml:snakeyaml:${rootProject.snakeyaml_version}")