From d6dbac05b3441ef19ca83a597bd02fa1aa9122c4 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 30 Jun 2022 09:27:46 +0200 Subject: [PATCH] [Fix] Do not include REI (possible cuase of quiqueck/BCLib#9) --- build.gradle | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/build.gradle b/build.gradle index fd146bd8..a4c80e6e 100644 --- a/build.gradle +++ b/build.gradle @@ -47,44 +47,13 @@ dependencies { } else { modImplementation "com.github.quiqueck:BCLib:${project.bclib_version}" } - useOptional "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}" - useOptional "me.shedaniel:RoughlyEnoughItems-api-fabric:${project.rei_version}" + modCompileOnly "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}" + modCompileOnly "me.shedaniel:RoughlyEnoughItems-api-fabric:${project.rei_version}" modImplementation "dev.emi:trinkets:${project.trinkets_version}" } -def useOptional(String dep) { - dependencies.modRuntimeOnly(dep) { - exclude group: 'net.fabricmc.fabric-api' - exclude group: 'net.fabricmc' - if (!dep.contains("me.shedaniel")) { - exclude group: 'me.shedaniel.cloth' - exclude group: 'me.shedaniel' - } - } - dependencies.modCompileOnly(dep) { - exclude group: 'net.fabricmc.fabric-api' - exclude group: 'net.fabricmc' - if (!dep.contains("me.shedaniel")) { - exclude group: 'me.shedaniel.cloth' - exclude group: 'me.shedaniel' - } - } -} - -def useApi(String dep) { - dependencies.modApi(dep) { - exclude group: 'net.fabricmc.fabric-api' - exclude group: 'net.fabricmc' - exclude group: 'com.terraformersmc' - if (!dep.contains("me.shedaniel")) { - exclude group: 'me.shedaniel.cloth' - exclude group: 'me.shedaniel' - } - } -} - processResources { println "Version: ${project.version}" inputs.property "version", project.version