forked from pingcap/tikv-client-lib-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
49 lines (44 loc) · 1.19 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
load(
"@com_github_zhexuany_bazel_shade//:java_shade.bzl",
"java_shade"
)
package(default_visibility = ["//visibility:public"])
java_binary(
name = "tikv-java-client",
main_class = "com.pingcap.tikv.Main",
runtime_deps = [
"//src/main/java/com/pingcap/tikv:tikv-java-client-lib",
":shaded_scalding",
],
)
java_shade(
name = "shaded_args",
input_jar = "@io_netty_netty_codec_socks//jar",
rules = "shading_rule"
)
java_import(
name = "shaded_scalding",
jars = ["shaded_args.jar"]
)
filegroup(
name = "protos",
srcs = glob([
"kvproto/proto/*.proto",
"kvproto/_vendor/src/github.com/gogo/protobuf/gogoproto/*.proto",
"tipb/proto/*.proto",
]),
)
load("@org_pubref_rules_protobuf//java:rules.bzl", "java_proto_library")
java_proto_library(
name = "java",
imports = [
"external/com_google_protobuf/src/",
"kvproto/proto",
"kvproto/_vendor/src/github.com/gogo/protobuf",
"tipb/proto",
],
inputs = ["@com_google_protobuf//:well_known_protos"],
protos = [":protos"],
verbose = 0, # 0=no output, 1=show protoc command, 2+ more...
with_grpc = True,
)