aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/BUILD
diff options
context:
space:
mode:
authorGravatar Shahan Yang <shahan@google.com>2017-12-15 17:25:23 -0500
committerGravatar John Cater <jcater@google.com>2017-12-18 11:30:29 -0500
commit96ea65b3b884fdec4e32d873b5e5a64354744263 (patch)
tree797e79258536439e2dcaaa77cafb3f8b5da7b04c /third_party/BUILD
parent094caa508fa74081d861e9e8f8eb50934811bf65 (diff)
Makes the auto_service rule export the plugin.
Change-Id: Ib470babdfe0d9aac328ead7f378fe281532d3b7e
Diffstat (limited to 'third_party/BUILD')
-rw-r--r--third_party/BUILD20
1 files changed, 15 insertions, 5 deletions
diff --git a/third_party/BUILD b/third_party/BUILD
index acbab9a661..39774d262f 100644
--- a/third_party/BUILD
+++ b/third_party/BUILD
@@ -220,7 +220,7 @@ java_plugin(
":apache_velocity",
":asm",
":auto_common",
- ":auto_service",
+ ":auto_service_lib",
":auto_value_value",
":guava",
":jsr305",
@@ -233,9 +233,14 @@ java_import(
jars = ["auto/auto-common-0.3.jar"],
)
-java_import(
+java_library(
name = "auto_service",
- jars = ["auto/auto-service-1.0-rc2.jar"],
+ exported_plugins = [
+ ":auto_service_plugin",
+ ],
+ exports = [
+ ":auto_service_lib",
+ ],
)
java_plugin(
@@ -243,11 +248,16 @@ java_plugin(
processor_class = "com.google.auto.service.processor.AutoServiceProcessor",
deps = [
":auto_common",
- ":auto_service",
+ ":auto_service_lib",
":guava",
],
)
+java_import(
+ name = "auto_service_lib",
+ jars = ["auto/auto-service-1.0-rc2.jar"],
+)
+
java_plugin(
name = "auto_value_plugin",
processor_class = "com.google.auto.value.processor.AutoValueProcessor",
@@ -256,7 +266,7 @@ java_plugin(
":apache_velocity",
":asm",
":auto_common",
- ":auto_service",
+ ":auto_service_lib",
":auto_value_value",
":guava",
":tomcat_annotations_api",