aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-01-21 21:37:16 -0800
committerColin Cross <ccross@android.com>2019-01-23 20:17:51 +0000
commitbe9cdb8d647b6f47fc427eca5e38092614171a4d (patch)
treef61e5566bc1327dd89c51b81c3b985f06dceb968 /Android.bp
parentc4efd9cb55239a9cb71286781ef47371d4f391a9 (diff)
downloadbuild_soong-be9cdb8d647b6f47fc427eca5e38092614171a4d.tar.gz
build_soong-be9cdb8d647b6f47fc427eca5e38092614171a4d.tar.bz2
build_soong-be9cdb8d647b6f47fc427eca5e38092614171a4d.zip
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 'Android.bp')
-rw-r--r--Android.bp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 2c400cf4..03071d1d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -249,6 +249,7 @@ bootstrap_go_package {
"java/jdeps.go",
"java/java_resources.go",
"java/kotlin.go",
+ "java/plugin.go",
"java/prebuilt_apis.go",
"java/proto.go",
"java/sdk.go",
@@ -262,6 +263,7 @@ bootstrap_go_package {
"java/java_test.go",
"java/jdeps_test.go",
"java/kotlin_test.go",
+ "java/plugin_test.go",
"java/sdk_test.go",
],
pluginFor: ["soong_build"],