From be9cdb8d647b6f47fc427eca5e38092614171a4d Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 21 Jan 2019 21:37:16 -0800 Subject: 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 --- java/kotlin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/kotlin_test.go') diff --git a/java/kotlin_test.go b/java/kotlin_test.go index 1069f4262..3deea1373 100644 --- a/java/kotlin_test.go +++ b/java/kotlin_test.go @@ -87,10 +87,10 @@ func TestKapt(t *testing.T) { java_library { name: "foo", srcs: ["a.java", "b.kt"], - annotation_processors: ["bar"], + plugins: ["bar"], } - java_library_host { + java_plugin { name: "bar", } `) -- cgit v1.2.3-59-g8ed1b