aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2022-03-22 11:05:28 +0200
committerJuuz <6596629+Juuxel@users.noreply.github.com>2022-03-22 11:05:28 +0200
commit1c38931f55388b2c42fcec4efa0b0e00ec309643 (patch)
treeff7f2acc94b1ea3d839306bbe30d55c8e2cb882d
parent92a6dd2bf4fa3627bbcc4473ceb5a0d3f9b11bfe (diff)
downloadLibGui-1c38931f55388b2c42fcec4efa0b0e00ec309643.tar.gz
LibGui-1c38931f55388b2c42fcec4efa0b0e00ec309643.tar.bz2
LibGui-1c38931f55388b2c42fcec4efa0b0e00ec309643.zip
Only depend on specific Fabric API modules
-rw-r--r--build.gradle12
-rw-r--r--src/main/resources/fabric.mod.json5
2 files changed, 15 insertions, 2 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}"
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
index 466944f..085ceac 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -25,7 +25,10 @@
"depends": {
"java": ">=17",
"fabricloader": ">=0.13.3",
- "fabric": ">=0.48.0",
+ "fabric-api-base": ">=0.4.4",
+ "fabric-lifecycle-events-v1": "^2.0.2",
+ "fabric-networking-api-v1": "^1.0.21",
+ "fabric-rendering-v1": "^1.10.7",
"minecraft": "~1.18.2",
"jankson": "^4.0.0",
"libninepatch": "^1.1.0"