forked from typedb/typedb-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
80 lines (71 loc) · 2.66 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
#
# 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"])
exports_files(["VERSION"], visibility = ["//visibility:public"])
load("@graknlabs_build_tools//checkstyle:rules.bzl", "checkstyle_test")
load("@graknlabs_build_tools//distribution/maven:rules.bzl", "deploy_maven", "assemble_maven")
exports_files(["VERSION"])
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=io.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",
version_file = "//:VERSION",
workspace_refs = "@graknlabs_client_java_workspace_refs//:refs.json"
)
deploy_maven(
name = "deploy-maven",
target = ":assemble-maven",
)