mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Enable javadoc lint only for files that contains javadoc comments, avoid warning for missing javadoc comments on everything else
(cherry picked from commit d176e608bd
)
This commit is contained in:
parent
7704bc78d0
commit
05ec149b39
1 changed files with 7 additions and 1 deletions
|
@ -59,7 +59,13 @@ allprojects {
|
|||
}
|
||||
|
||||
tasks.withType(Javadoc).configureEach {
|
||||
options.addStringOption("Xwerror", "-quiet")
|
||||
if (JavaVersion.current().compareTo(JavaVersion.VERSION_14) > 0) {
|
||||
// with JDK 15 the -Xwerror undocumented feature becomes official with switch -Werror
|
||||
options.addBooleanOption("Werror", true)
|
||||
} else {
|
||||
options.addBooleanOption("Xwerror", true)
|
||||
}
|
||||
options.addBooleanOption("Xdoclint:all,-missing", true)
|
||||
if (JavaVersion.current().compareTo(JavaVersion.VERSION_1_9) > 0) {
|
||||
options.addBooleanOption("html5", true)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue