9
0
mirror of https://github.com/Dreeam-qwq/Gale.git synced 2025-12-29 03:29:09 +00:00
Files
Gale/patches/server/0003-Hide-irrelevant-compilation-warnings.patch
2024-03-06 07:14:37 -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 b86398b20a38a1d06b44f328f191b44f73553aeb..4d5c2cbb26c97ac11d4908a1d734c421a06b1ba8 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -65,6 +65,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")