From eaa0e75c845dd9a31e589c47807cd5947a8f1b34 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sun, 8 Jan 2023 14:45:51 -0700 Subject: [PATCH] Fix wall of warnings when compiling fabric module (loom moment) --- fabric/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fabric/build.gradle.kts b/fabric/build.gradle.kts index 76cea73c..4ba9c62c 100644 --- a/fabric/build.gradle.kts +++ b/fabric/build.gradle.kts @@ -30,6 +30,12 @@ dependencies { modImplementation(libs.cloudFabric) include(libs.cloudFabric) + + // loom doesn't properly copy non-mod transitive deps of mod + // dependencies (cloud in this case), so we need to manually + // add this dependency to avoid hundreds of compile warnings. + compileOnly("org.apiguardian:apiguardian-api:1.1.2") + modImplementation(libs.adventurePlatformFabric) include(libs.adventurePlatformFabric) }