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
30 lines
601 B
Plaintext
30 lines
601 B
Plaintext
java_plugin {
|
|
name: "view-inspector-annotation-processor",
|
|
|
|
processor_class: "android.processor.view.inspector.PlatformInspectableProcessor",
|
|
|
|
srcs: ["src/java/**/*.java"],
|
|
java_resource_dirs: ["src/resources"],
|
|
|
|
static_libs: [
|
|
"javapoet",
|
|
],
|
|
|
|
use_tools_jar: true,
|
|
}
|
|
|
|
java_test_host {
|
|
name: "view-inspector-annotation-processor-test",
|
|
|
|
srcs: ["test/java/**/*.java"],
|
|
java_resource_dirs: ["test/resources"],
|
|
|
|
static_libs: [
|
|
"junit",
|
|
"guava",
|
|
"view-inspector-annotation-processor"
|
|
],
|
|
|
|
test_suites: ["general-tests"],
|
|
}
|