forked from typedb/typedb-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
90 lines (81 loc) · 3.04 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
#
# GRAKN.AI - THE KNOWLEDGE GRAPH
# Copyright (C) 2018 Grakn Labs Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
package(default_visibility = ["//visibility:public"])
load("@graknlabs_grakn_core//dependencies/maven:rules.bzl", "deploy_maven", "assemble_maven")
load("@graknlabs_build_tools//checkstyle:rules.bzl", "checkstyle_test")
java_library(
name = "client-java",
srcs = glob([
"concept/*.java",
"exception/*.java",
"rpc/*.java",
"test/*.java",
"GraknClient.java"
]),
deps = [
# Internal dependencies
"@graknlabs_grakn_core//api:api",
"@graknlabs_grakn_core//common:common",
"@graknlabs_grakn_core//concept:concept",
"@graknlabs_grakn_core//protocol:protocol-java",
# External dependencies from @graknlabs
"@graknlabs_graql//java:graql",
# External dependencies from Maven
"//dependencies/maven/artifacts/com/google/code/findbugs:jsr305",
"//dependencies/maven/artifacts/com/google/guava:guava",
"//dependencies/maven/artifacts/io/grpc:grpc-core",
"//dependencies/maven/artifacts/io/grpc:grpc-stub",
"//dependencies/maven/artifacts/org/slf4j:slf4j-api"
],
runtime_deps = [
"//dependencies/maven/artifacts/ch/qos/logback:logback-classic",
"//dependencies/maven/artifacts/ch/qos/logback:logback-core",
"//dependencies/maven/artifacts/io/grpc:grpc-netty",
"//dependencies/maven/artifacts/io/netty:netty-all",
],
resources = ["LICENSE"],
tags = ["maven_coordinates=grakn.client:api:{pom_version}"],
)
checkstyle_test(
name = "checkstyle",
targets = [":client-java"],
license_type = "apache"
)
assemble_maven(
name = "assemble-maven",
target = ":client-java",
package = "client-java",
)
deploy_maven(
name = "deploy-maven",
target = ":assemble-maven"
)
# When a Bazel build or test is executed with RBE, it will be executed using the following platform.
# The platform is based on the standard rbe_ubuntu1604 from @bazel_toolchains,
# but with an additional setting dockerNetwork = standard because our tests need network access
platform(
name = "rbe-platform",
parents = ["@bazel_toolchains//configs/ubuntu16_04_clang/1.1:rbe_ubuntu1604"],
remote_execution_properties = """
{PARENT_REMOTE_EXECUTION_PROPERTIES}
properties: {
name: "dockerNetwork"
value: "standard"
}
""",
)