summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Gaston <jeffrygaston@google.com>2020-05-26 13:54:39 -0400
committerJeff Gaston <jeffrygaston@google.com>2020-05-26 14:22:48 -0400
commit014191d950bc515544181682c9ced9658b5d2514 (patch)
tree7f1df68fb0c82ede4f8cc4c652651ea0f30820c3
parentdc123f2a39c7d6dc9cf64474e17e8bb874a1cdc2 (diff)
downloaddoclava-014191d950bc515544181682c9ced9658b5d2514.tar.gz
Suppressing warnings during build of Doclava
We hope to migrate away from Doclava to Dokka before it becomes necessary to address the warnings Bug: 154755010 Test: Run `cd ../../frameworks/support && ./cleanBuild.sh -y distPublicDocs` \ and see that it doesn't generate any warnings looking like this: /usr/local/google/workspace/aosp-androidx-git/external/doclava/src/com/google/doclava/Converter.java:96: warning: [removal] ClassDoc in com.sun.javadoc has been deprecated and marked for removal Change-Id: I8b05101d606197c5d8459f8cf8051f0851afb3c0
-rw-r--r--build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 7cd0f09..bb0ff5f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -121,3 +121,8 @@ task dist(type: Zip, dependsOn: uploadArchives) {
logger.lifecycle "Compressed maven artifacts to ${archivePath}"
}
}
+
+tasks.withType(JavaCompile) {
+ // Suppress build warnings that we're not interested in: b/154755010
+ options.warnings = false
+}