@@ -10,11 +10,9 @@ package(
10
10
11
11
# keep sorted
12
12
COMMON_SOURCES = [
13
- "CelAbstractSyntaxTree.java" ,
14
13
"CelDescriptorUtil.java" ,
15
14
"CelDescriptors.java" ,
16
15
"CelException.java" ,
17
- "CelSource.java" ,
18
16
]
19
17
20
18
# keep sorted
@@ -49,6 +47,8 @@ java_library(
49
47
tags = [
50
48
],
51
49
deps = [
50
+ ":cel_ast" ,
51
+ ":cel_source" ,
52
52
":error_codes" ,
53
53
":source" ,
54
54
":source_location" ,
@@ -72,6 +72,8 @@ java_library(
72
72
tags = [
73
73
],
74
74
deps = [
75
+ ":cel_ast" ,
76
+ ":cel_source" ,
75
77
":common" ,
76
78
":source" ,
77
79
":source_location" ,
@@ -116,6 +118,8 @@ java_library(
116
118
tags = [
117
119
],
118
120
deps = [
121
+ ":cel_ast" ,
122
+ ":cel_source" ,
119
123
"//common" ,
120
124
"//common/ast:expr_converter" ,
121
125
"//common/types:cel_proto_types" ,
@@ -131,7 +135,10 @@ java_library(
131
135
tags = [
132
136
],
133
137
deps = [
138
+ ":cel_ast" ,
139
+ ":cel_source" ,
134
140
":common" ,
141
+ "//common:cel_source" ,
135
142
"//common/ast:expr_v1alpha1_converter" ,
136
143
"//common/types:cel_v1alpha1_types" ,
137
144
"@com_google_googleapis//google/api/expr/v1alpha1:expr_java_proto" ,
@@ -164,6 +171,7 @@ java_library(
164
171
tags = [
165
172
],
166
173
deps = [
174
+ ":cel_ast" ,
167
175
":mutable_source" ,
168
176
"//common" ,
169
177
"//common/ast" ,
@@ -178,6 +186,7 @@ java_library(
178
186
tags = [
179
187
],
180
188
deps = [
189
+ ":cel_source" ,
181
190
":common" ,
182
191
"//:auto_value" ,
183
192
"//common/ast:mutable_expr" ,
@@ -213,6 +222,44 @@ java_library(
213
222
],
214
223
)
215
224
225
+ java_library (
226
+ name = "cel_source" ,
227
+ srcs = ["CelSource.java" ],
228
+ tags = [
229
+ "alt_dep=//common:cel_source" ,
230
+ "avoid_dep" ,
231
+ ],
232
+ deps = [
233
+ ":source" ,
234
+ ":source_location" ,
235
+ "//:auto_value" ,
236
+ "//common/annotations" ,
237
+ "//common/ast" ,
238
+ "//common/internal" ,
239
+ "@maven//:com_google_errorprone_error_prone_annotations" ,
240
+ "@maven//:com_google_guava_guava" ,
241
+ ],
242
+ )
243
+
244
+ java_library (
245
+ name = "cel_ast" ,
246
+ srcs = ["CelAbstractSyntaxTree.java" ],
247
+ tags = [
248
+ "alt_dep=//common:cel_ast" ,
249
+ "avoid_dep" ,
250
+ ],
251
+ deps = [
252
+ ":cel_source" ,
253
+ "//:auto_value" ,
254
+ "//common/annotations" ,
255
+ "//common/ast" ,
256
+ "//common/types" ,
257
+ "//common/types:type_providers" ,
258
+ "@maven//:com_google_errorprone_error_prone_annotations" ,
259
+ "@maven//:com_google_guava_guava" ,
260
+ ],
261
+ )
262
+
216
263
java_library (
217
264
name = "source" ,
218
265
srcs = SOURCE_SOURCES ,
0 commit comments