Run unsupportedappusage-annotation-processor on libcore libraries.
Libcore depends on the source files directly via a filegroup; framework and others depend on a java_library that exports a java_plugin. Manually specific that the annotation processor must run on libcore/ targets as well.
Bug: 145132366
Change-Id: Ie7034c901761898989cc7150f8399737c2adc8da
Merged-In: Ie7034c901761898989cc7150f8399737c2adc8da
Test: m
(cherry picked from commit a09cba083137fb69ef017c60a06d2f225cd86815)
diff --git a/JavaLibrary.bp b/JavaLibrary.bp
index adb5b0f..1be8711 100644
--- a/JavaLibrary.bp
+++ b/JavaLibrary.bp
@@ -223,7 +223,10 @@
installable: false,
- plugins: ["compat-changeid-annotation-processor"],
+ plugins: [
+ "compat-changeid-annotation-processor",
+ "unsupportedappusage-annotation-processor",
+ ],
}
platform_compat_config {
@@ -379,6 +382,7 @@
sdk_version: "none",
system_modules: "core-all-system-modules",
patch_module: "java.base",
+ plugins: ["unsupportedappusage-annotation-processor"],
}
//