From d2ab4db35342888743566bb68b8742ff4257b20b Mon Sep 17 00:00:00 2001 From: LoganDark Date: Wed, 3 Aug 2022 10:01:50 -0700 Subject: You don't need the entire Fabric API This massively speeds up sync times for me, since Loom no longer has to remap 45+ Fabric API modules. Additionally, this allows users to install No Chat Reports without Fabric API, as the required modules are already included. --- build.gradle | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 514e73d..64e6089 100644 --- a/build.gradle +++ b/build.gradle @@ -24,7 +24,12 @@ dependencies { minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings loom.officialMojangMappings() modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" - modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" + + include(fabricApi.module("fabric-api-base", project.fabric_version)) + modImplementation include(fabricApi.module("fabric-networking-api-v1", project.fabric_version)) + modImplementation include(fabricApi.module("fabric-screen-api-v1", project.fabric_version)) + modImplementation include(fabricApi.module("fabric-rendering-v1", project.fabric_version)) + modImplementation include(fabricApi.module("fabric-resource-loader-v0", project.fabric_version)) } processResources { @@ -129,4 +134,4 @@ afterEvaluate { task upload { dependsOn('modrinth') dependsOn('curseforge') -} \ No newline at end of file +} -- cgit v1.2.3 From 3ba5ad30eac2e9fd7f544574e83695d9a9dadba2 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Sun, 14 Aug 2022 16:48:15 +0200 Subject: Change Fabric API to embedded for Curse/Modrinth --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 3a1011b..0455b3c 100644 --- a/build.gradle +++ b/build.gradle @@ -91,7 +91,7 @@ curseforge { addGameVersion 'Java 17' relations { - requiredLibrary 'fabric-api' + embeddedLibrary 'fabric-api' } afterEvaluate { @@ -121,7 +121,7 @@ modrinth { dependencies { // The scope can be `required`, `optional`, or `incompatible` - required.project "fabric-api" + embedded.project "fabric-api" } //syncBodyFrom = rootProject.file("docs/README.md").text -- cgit v1.2.3