mirror of
https://github.com/Dreeam-qwq/Gale.git
synced 2025-12-22 16:29:26 +00:00
30 lines
943 B
Diff
30 lines
943 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Martijn Muijsers <martijnmuijsers@live.nl>
|
|
Date: Tue, 29 Nov 2022 01:17:03 +0100
|
|
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 f84011f83ebf238023ae6900873b0dfc9dfd0bd4..a6ebccaf06a528b70b3362021cf836f35b4326dc 100644
|
|
--- a/build.gradle.kts
|
|
+++ b/build.gradle.kts
|
|
@@ -66,6 +66,16 @@ dependencies {
|
|
}
|
|
|
|
val craftbukkitPackageVersion = "1_20_R1" // 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")
|
|
|