summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-12-01 10:17:02 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-12-01 11:54:42 +0100
commit55097433ed766a2ced6b87021a71c8a31cde9d99 (patch)
treecd0c74b7e4c7a4cf28dfe96743bcd681245675fc
parentf461853b11439c4e485a79174d34735395e5bf52 (diff)
android: Shown warnings about deprecated API usage
Configure the gradle build to show detailed warnings about the use of deprecated API, instead of just > Task :compileStrippedUIEditingDebugJavaWithJavac Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. With this in place, 78 specific warnings about the use of deprecated API are now shown in the build output, which can be addressed at some point. Change-Id: I9f3b484b6dfad1fc57895efa7d3426b625030ee7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160198 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--android/source/build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/source/build.gradle b/android/source/build.gradle
index 8fd3de9be2c3..3157dcf6ad6d 100644
--- a/android/source/build.gradle
+++ b/android/source/build.gradle
@@ -91,6 +91,11 @@ android {
}
}
+// show warnings about use of deprecated API
+tasks.withType(JavaCompile).configureEach {
+ options.deprecation = true
+}
+
/* remark inherited from makefile:
Then "assets". Let the directory structure under assets mimic
that under solver for now.