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.
This commit is contained in:
Ryan Ernst 2020-04-17 10:27:24 -07:00 committed by Ryan Ernst
parent 727ff2fe82
commit a49ce45f1b
No known key found for this signature in database
GPG Key ID: 5F7EA39E15F54DCE
1 changed files with 1 additions and 4 deletions

View File

@ -170,10 +170,7 @@ class PrecommitTasks {
targetCompatibility = BuildParams.runtimeJavaVersion.majorVersion targetCompatibility = BuildParams.runtimeJavaVersion.majorVersion
if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_13) { if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_13) {
project.logger.warn( // forbidden apis does not yet support java 14 (it will in version 3.0), so we must use java 13 target
"Forbidden APIs does not support Java versions past 13. Will use the signatures from 13 for {}.",
BuildParams.runtimeJavaVersion
)
targetCompatibility = JavaVersion.VERSION_13.majorVersion targetCompatibility = JavaVersion.VERSION_13.majorVersion
} }
bundledSignatures = [ bundledSignatures = [