Skip to content

Commit 88fdbc4

Browse files
committed
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.
1 parent 1acf956 commit 88fdbc4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ class PrecommitTasks {
153153
dependsOn(buildResources)
154154
targetCompatibility = BuildParams.runtimeJavaVersion.majorVersion
155155
if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_13) {
156-
project.logger.warn(
157-
"Forbidden APIs does not support Java versions past 13. Will use the signatures from 13 for {}.",
158-
BuildParams.runtimeJavaVersion
159-
)
156+
// forbidden apis does not yet support java 14 (it will in version 3.0), so we must use java 13 target
160157
targetCompatibility = JavaVersion.VERSION_13.majorVersion
161158
}
162159
bundledSignatures = [

0 commit comments

Comments
 (0)