9
0
mirror of https://github.com/Dreeam-qwq/Gale.git synced 2025-12-27 18:49:11 +00:00
Files
Gale/patches/server/0003-Hide-irrelevant-compilation-warnings.patch
2024-01-19 16:49:33 -05:00

30 lines
943 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Martijn Muijsers <martijnmuijsers@live.nl>
Date: Sun, 24 Sep 2023 14:58:55 +0200
Subject: [PATCH] Hide irrelevant compilation warnings
License: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html)
Gale - https://galemc.org
diff --git a/build.gradle.kts b/build.gradle.kts
index 7d00abc41857d008c863f4350d97a0e018241690..3c30e911885dcbe5456614f2073ddbf2dc17040c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -63,6 +63,16 @@ dependencies {
}
val craftbukkitPackageVersion = "1_20_R3" // Paper
+
+// Gale start - hide irrelevant compilation warnings
+tasks.withType<JavaCompile> {
+ val compilerArgs = options.compilerArgs
+ compilerArgs.add("-Xlint:-module")
+ compilerArgs.add("-Xlint:-removal")
+ compilerArgs.add("-Xlint:-dep-ann")
+}
+// Gale end - hide irrelevant compilation warnings
+
tasks.jar {
archiveClassifier.set("dev")