Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#1987] improvement(build): Take warning information as error when build java docs (#2014)

Qi Yu2ecdb6f01477
diff --git a/build.gradle.kts b/build.gradle.kts
index 543a976f7b..f2f1fe90ea 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -199,6 +199,14 @@ subprojects {
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
options.locale = "en_US"
+
+ val projectName = project.name
+ if (projectName == "common" || projectName == "api" || projectName == "client-java") {
+ options {
+ (this as CoreJavadocOptions).addStringOption("Xwerror", "-quiet")
+ isFailOnError = true
+ }
+ }
}
val sourcesJar by tasks.registering(Jar::class) {