diff options
author | 2019-01-21 21:37:16 -0800 | |
---|---|---|
committer | 2019-01-23 20:17:51 +0000 | |
commit | be9cdb8d647b6f47fc427eca5e38092614171a4d (patch) | |
tree | f61e5566bc1327dd89c51b81c3b985f06dceb968 /java/java_test.go | |
parent | c4efd9cb55239a9cb71286781ef47371d4f391a9 (diff) |
Replace annotation_processors with plugins
Follow bazel's modules for annotation processors by introducing
a java_plugin module type that can contain extra metadata about
the annotation processor, the processor class and a flag to
specify if the annotation processor is compatible with the
turbine optimization. Deprecate the annotation_processors
property, which took a list of java_library_host modules, in
favor of the plugins property, which takes a list of java_plugin
modules. The annotation_processors property will be removed
once all uses have been replaced with plugins.
Bug: 77284273
Test: plugin_test.go
Test: m caliper
Change-Id: I37c1e80eba71ae2d6a06199fb102194a51994989
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go index 9f805bb64..a0d962e3e 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -83,6 +83,7 @@ func testContext(config android.Config, bp string, ctx.RegisterModuleType("java_defaults", android.ModuleFactoryAdaptor(defaultsFactory)) ctx.RegisterModuleType("java_system_modules", android.ModuleFactoryAdaptor(SystemModulesFactory)) ctx.RegisterModuleType("java_genrule", android.ModuleFactoryAdaptor(genRuleFactory)) + ctx.RegisterModuleType("java_plugin", android.ModuleFactoryAdaptor(PluginFactory)) ctx.RegisterModuleType("filegroup", android.ModuleFactoryAdaptor(android.FileGroupFactory)) ctx.RegisterModuleType("genrule", android.ModuleFactoryAdaptor(genrule.GenRuleFactory)) ctx.RegisterModuleType("droiddoc", android.ModuleFactoryAdaptor(DroiddocFactory)) |