From fab5dcdc3567ddd8c0fac3380327fcde9fc43d88 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 9 Mar 2021 18:36:40 -0500 Subject: [PATCH] Don't include extra copies of the Fabric API --- build.gradle | 8 ++++++-- plugin/rei/build.gradle | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 496256d..9025ba2 100644 --- a/build.gradle +++ b/build.gradle @@ -45,8 +45,12 @@ dependencies { runtimeOnly project(":plugin:rei") include project(":plugin:rei") - modRuntime "io.github.cottonmc:cotton-resources:${project.cotton_resources_version}" - modRuntime "com.terraformersmc:modmenu:${project.modmenu_version}" + modRuntime("io.github.cottonmc:cotton-resources:${project.cotton_resources_version}") { + exclude group: "net.fabricmc.fabric-api" + } + modRuntime("com.terraformersmc:modmenu:${project.modmenu_version}") { + exclude group: "net.fabricmc.fabric-api" + } testImplementation "org.junit.jupiter:junit-jupiter:${project.junit_version}" } diff --git a/plugin/rei/build.gradle b/plugin/rei/build.gradle index c485455..e06f284 100644 --- a/plugin/rei/build.gradle +++ b/plugin/rei/build.gradle @@ -33,8 +33,12 @@ dependencies { implementation project(":") - modCompileOnly "me.shedaniel:RoughlyEnoughItems-api:${project.rei_version}" - modRuntime "me.shedaniel:RoughlyEnoughItems:${project.rei_version}" + modCompileOnly("me.shedaniel:RoughlyEnoughItems-api:${project.rei_version}") { + exclude group: "net.fabricmc.fabric-api" + } + modRuntime("me.shedaniel:RoughlyEnoughItems:${project.rei_version}") { + exclude group: "net.fabricmc.fabric-api" + } } processResources {