From a3b22bfd1427ce1c38a64f8b76410578f2e7fda2 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 23 Jan 2019 15:38:30 -0800 Subject: [PATCH] Replace annotation_processors with plugins The annotation_processors property is deprecated, replace it with plugins, and use java_plugin for modules that provide annotation processors. Bug: 77284273 Test: m checkbuild Change-Id: I467b899e0c8f2c8fa74a9bfbe6e952ad0f7aa009 --- packages/CarSystemUI/Android.bp | 2 +- packages/SystemUI/Android.bp | 4 ++-- tools/processors/view_inspector/Android.bp | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/CarSystemUI/Android.bp b/packages/CarSystemUI/Android.bp index 9b6ad38545b4f..9064ebe80da1c 100644 --- a/packages/CarSystemUI/Android.bp +++ b/packages/CarSystemUI/Android.bp @@ -81,5 +81,5 @@ android_app { "com.android.keyguard", ], - annotation_processors: ["dagger2-compiler-2.19"], + plugins: ["dagger2-compiler-2.19"], } diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp index 8be67d9a7a51d..0a62b7c1bde25 100644 --- a/packages/SystemUI/Android.bp +++ b/packages/SystemUI/Android.bp @@ -73,7 +73,7 @@ android_library { "com.android.keyguard", ], - annotation_processors: ["dagger2-compiler-2.19"], + plugins: ["dagger2-compiler-2.19"], } android_library { @@ -127,7 +127,7 @@ android_library { "--extra-packages", "com.android.keyguard:com.android.systemui", ], - annotation_processors: ["dagger2-compiler-2.19"], + plugins: ["dagger2-compiler-2.19"], } android_app { diff --git a/tools/processors/view_inspector/Android.bp b/tools/processors/view_inspector/Android.bp index 9b5df56e3987a..06ff05e5d7553 100644 --- a/tools/processors/view_inspector/Android.bp +++ b/tools/processors/view_inspector/Android.bp @@ -1,6 +1,8 @@ -java_library_host { +java_plugin { name: "view-inspector-annotation-processor", + processor_class: "android.processor.view.inspector.PlatformInspectableProcessor", + srcs: ["src/java/**/*.java"], java_resource_dirs: ["src/resources"],