From 3f73e31d9edeec9f4ea7428940cd2cf7ba2ca7b0 Mon Sep 17 00:00:00 2001 From: MD <1917406+mdcfe@users.noreply.github.com> Date: Thu, 26 Nov 2020 01:12:58 +0000 Subject: [PATCH] Suppress deprecation and javadoc warnings by default --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ca5cc6f30..273baa25f 100644 --- a/build.gradle +++ b/build.gradle @@ -119,12 +119,16 @@ subprojects { } } + compileJava { + options.compilerArgs.add('-Xlint:-deprecation') + } + javadoc { title = "${project.name} API (v${rootProject.ext.fullVersion})" options.links( 'https://hub.spigotmc.org/javadocs/spigot/' ) - options.addStringOption('Xdoclint:none', '-quiet') + options.addStringOption('-Xdoclint:none', '-quiet') } // undo https://github.com/KyoriPowered/indra/blob/master/indra-common/src/main/kotlin/net/kyori/indra/IndraPlugin.kt#L57