From a49ce45f1bb62e6e6a6ab4eab077415b2ad2a188 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Fri, 17 Apr 2020 10:27:24 -0700 Subject: [PATCH] Removing warning for forbidden apis not supporting java 14 (#55359) While the current version of forbidden apis still does not support java 14, the warning message has become very noisy as we now require java 14 for the elasticsearch build. This commit replaces the warn log message with a comment in the code. --- .../org/elasticsearch/gradle/precommit/PrecommitTasks.groovy | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy index cc4ac4620f0..7705e6c125f 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy @@ -170,10 +170,7 @@ class PrecommitTasks { targetCompatibility = BuildParams.runtimeJavaVersion.majorVersion if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_13) { - project.logger.warn( - "Forbidden APIs does not support Java versions past 13. Will use the signatures from 13 for {}.", - BuildParams.runtimeJavaVersion - ) + // forbidden apis does not yet support java 14 (it will in version 3.0), so we must use java 13 target targetCompatibility = JavaVersion.VERSION_13.majorVersion } bundledSignatures = [