From 795f9f61ad86314923adc96157268eac3b4954cc Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sun, 10 Dec 2023 00:29:40 +0800 Subject: [PATCH] Do not leak forge shadowed dependencies to pom --- forge/build.gradle | 6 +++--- neoforge/build.gradle | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/forge/build.gradle b/forge/build.gradle index 61506e37..09603ebe 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -36,9 +36,9 @@ dependencies { forgeDependencies(shadowCommon("me.shedaniel.cloth:basic-math:0.6.1")) forgeDependencies("cpw.mods:securejarhandler:0.9.48") - implementation("blue.endless:jankson:${rootProject.jankson_version}") - implementation("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") - implementation("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") + modLocalRuntime("blue.endless:jankson:${rootProject.jankson_version}") + modLocalRuntime("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") + modLocalRuntime("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") forgeDependencies(shadowCommon("blue.endless:jankson:${rootProject.jankson_version}")) forgeDependencies(shadowCommon("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") { exclude(module: "gson") diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 18a46f8f..150fa4e5 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -35,9 +35,9 @@ dependencies { modLocalRuntime("me.shedaniel.cloth:basic-math:0.6.1") forgeRuntimeLibrary(shadowCommon("me.shedaniel.cloth:basic-math:0.6.1")) - implementation("blue.endless:jankson:${rootProject.jankson_version}") - implementation("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") - implementation("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") + modLocalRuntime("blue.endless:jankson:${rootProject.jankson_version}") + modLocalRuntime("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") + modLocalRuntime("org.yaml:snakeyaml:${rootProject.snakeyaml_version}") forgeRuntimeLibrary(shadowCommon("blue.endless:jankson:${rootProject.jankson_version}")) forgeRuntimeLibrary(shadowCommon("com.moandjiezana.toml:toml4j:${rootProject.toml4j_version}") { exclude(module: "gson")