-
Notifications
You must be signed in to change notification settings - Fork 42
/
BUILD
114 lines (102 loc) · 3.28 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Copyright (C) 2018 The Google Bazel Common Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# BUILD rules for https://github.com/google/auto
load("@rules_java//java:defs.bzl", "java_library", "java_plugin")
package(default_visibility = ["//visibility:public"])
java_library(
name = "common",
exports = ["@com_google_auto_auto_common//jar"],
)
java_plugin(
name = "auto_value_processor",
processor_class = "com.google.auto.value.processor.AutoValueProcessor",
visibility = ["//visibility:private"],
deps = [
":common",
":service",
"//third_party/java/guava",
"@com_google_auto_value_auto_value//jar",
],
)
java_plugin(
name = "auto_annotation_processor",
processor_class = "com.google.auto.value.processor.AutoAnnotationProcessor",
visibility = ["//visibility:private"],
deps = [
":common",
":service",
"//third_party/java/guava",
"@com_google_auto_value_auto_value//jar",
],
)
java_plugin(
name = "auto_oneof_processor",
processor_class = "com.google.auto.value.processor.AutoOneOfProcessor",
visibility = ["//visibility:private"],
deps = [
":common",
":service",
"//third_party/java/guava",
"@com_google_auto_value_auto_value//jar",
],
)
java_library(
name = "value",
exported_plugins = [
":auto_annotation_processor",
":auto_oneof_processor",
":auto_value_processor",
],
tags = ["maven:compile_only"],
exports = [
"//third_party/java/jsr250_annotations", # TODO(ronshapiro) Can this be removed?
"@com_google_auto_value_auto_value_annotations//jar",
],
)
java_plugin(
name = "auto_factory_processor",
generates_api = 1,
processor_class = "com.google.auto.factory.processor.AutoFactoryProcessor",
visibility = ["//visibility:private"],
deps = [
":common",
":service",
"//third_party/java/google_java_format",
"//third_party/java/guava",
"//third_party/java/javapoet",
"@com_google_auto_factory_auto_factory//jar",
],
)
java_library(
name = "factory",
exported_plugins = [":auto_factory_processor"],
exports = ["@com_google_auto_factory_auto_factory//jar"],
)
java_plugin(
name = "auto_service_processor",
processor_class = "com.google.auto.service.processor.AutoServiceProcessor",
visibility = ["//visibility:private"],
deps = [
":common",
"//third_party/java/guava",
"@com_google_auto_service_auto_service//jar",
"@com_google_auto_service_auto_service_annotations//jar",
],
)
java_library(
name = "service",
exported_plugins = [":auto_service_processor"],
tags = ["maven:compile_only"],
exports = ["@com_google_auto_service_auto_service_annotations//jar"],
)