diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2022-03-22 11:05:28 +0200 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2022-03-22 11:05:28 +0200 |
commit | 1c38931f55388b2c42fcec4efa0b0e00ec309643 (patch) | |
tree | ff7f2acc94b1ea3d839306bbe30d55c8e2cb882d /build.gradle | |
parent | 92a6dd2bf4fa3627bbcc4473ceb5a0d3f9b11bfe (diff) | |
download | LibGui-1c38931f55388b2c42fcec4efa0b0e00ec309643.tar.gz LibGui-1c38931f55388b2c42fcec4efa0b0e00ec309643.tar.bz2 LibGui-1c38931f55388b2c42fcec4efa0b0e00ec309643.zip |
Only depend on specific Fabric API modules
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 12 |
1 files changed, 11 insertions, 1 deletions
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}" |