From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Martijn Muijsers Date: Tue, 29 Nov 2022 01:15:55 +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 460bd4029b5a01e39b2322e69aecc128a073ee3a..96b612bc8083eb077151d9e024e0eecb5c6b1eec 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -89,6 +89,15 @@ val generateApiVersioningFile by tasks.registering { } } +// Gale start - hide irrelevant compilation warnings +tasks.withType { + 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 { from(generateApiVersioningFile.map { it.outputs.files.singleFile }) { into("META-INF/maven/${project.group}/${project.name}") @@ -146,6 +155,8 @@ tasks.withType { into("build/docs/javadoc") } } + + options.addStringOption("Xdoclint:none", "-quiet") // Gale - hide irrelevant compilation warnings } // Paper start