a1f8e1ab3d
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: I14ed4d81e097510866cbb9a27c72be4426117885
28 lines
786 B
Plaintext
28 lines
786 B
Plaintext
|
|
java_plugin {
|
|
name: "unsupportedappusage-annotation-processor",
|
|
processor_class: "android.processor.unsupportedappusage.UnsupportedAppUsageProcessor",
|
|
|
|
java_resources: [
|
|
"META-INF/**/*",
|
|
],
|
|
srcs: [
|
|
"src/**/*.java",
|
|
],
|
|
static_libs: [
|
|
"guava",
|
|
"unsupportedappusage-annotation"
|
|
],
|
|
openjdk9: {
|
|
javacflags: [
|
|
"--add-modules=jdk.compiler",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
|
|
],
|
|
},
|
|
|
|
use_tools_jar: true,
|
|
}
|