From 1c38931f55388b2c42fcec4efa0b0e00ec309643 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Tue, 22 Mar 2022 11:05:28 +0200 Subject: Only depend on specific Fabric API modules --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index fc4276a..73f141f 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,17 @@ dependencies { minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" - modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" + + def fabricApiModules = [ + 'fabric-api-base', + 'fabric-lifecycle-events-v1', + 'fabric-networking-api-v1', + 'fabric-rendering-v1', + ] + for (def module : fabricApiModules) { + modImplementation fabricApi.module(module, project.fabric_version) + } + modImplementation "io.github.cottonmc:Jankson-Fabric:${project.jankson_version}" include "io.github.cottonmc:Jankson-Fabric:${project.jankson_version}" -- cgit