-
Notifications
You must be signed in to change notification settings - Fork 2
/
WORKSPACE
141 lines (107 loc) · 4.44 KB
/
WORKSPACE
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
workspace(name = "org_onosproject_onos")
load("//tools/build/bazel:bazel_version.bzl", "check_bazel_version")
check_bazel_version()
load("//tools/build/bazel:local_jar.bzl", "local_atomix", "local_jar", "local_yang_tools")
# Use this to build against locally built arbitrary 3rd party artifacts
#local_jar(
# name = "atomix",
# path = "/Users/tom/atomix/core/target/atomix-3.0.8-SNAPSHOT.jar",
#)
# Use this to build against locally built Atomix
#local_atomix(
# path = "/Users/tom/atomix",
# version = "3.0.8-SNAPSHOT",
#)
# Use this to build against locally built YANG tools
#local_yang_tools(
# path = "/Users/andrea/onos-yang-tools",
# version = "2.6-SNAPSHOT",
#)
load("//tools/build/bazel:generate_workspace.bzl", "generated_maven_jars")
generated_maven_jars()
load("//tools/build/bazel:protobuf_workspace.bzl", "generate_protobuf")
generate_protobuf()
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
load("//tools/build/bazel:grpc_workspace.bzl", "generate_grpc")
generate_grpc()
load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
# We omit as many dependencies as we can and instead import the same via
# deps.json, so they get wrapped properly for Karaf runtime.
grpc_java_repositories(
omit_bazel_skylib = False,
omit_com_google_android_annotations = False,
omit_com_google_api_grpc_google_common_protos = True,
omit_com_google_auth_google_auth_library_credentials = True,
omit_com_google_auth_google_auth_library_oauth2_http = True,
omit_com_google_code_findbugs_jsr305 = True,
omit_com_google_code_gson = True,
omit_com_google_errorprone_error_prone_annotations = True,
omit_com_google_guava = True,
omit_com_google_guava_failureaccess = False,
omit_com_google_j2objc_j2objc_annotations = True,
omit_com_google_protobuf = True,
omit_com_google_protobuf_javalite = True,
omit_com_google_truth_truth = True,
omit_com_squareup_okhttp = True,
omit_com_squareup_okio = True,
omit_io_grpc_grpc_proto = True,
omit_io_netty_buffer = True,
omit_io_netty_codec = True,
omit_io_netty_codec_http = True,
omit_io_netty_codec_http2 = True,
omit_io_netty_codec_socks = True,
omit_io_netty_common = True,
omit_io_netty_handler = True,
omit_io_netty_handler_proxy = True,
omit_io_netty_resolver = True,
omit_io_netty_tcnative_boringssl_static = True,
omit_io_netty_transport = True,
omit_io_opencensus_api = True,
omit_io_opencensus_grpc_metrics = True,
omit_io_perfmark = True,
omit_javax_annotation = True,
omit_junit_junit = True,
omit_net_zlib = True,
omit_org_apache_commons_lang3 = True,
omit_org_codehaus_mojo_animal_sniffer_annotations = True,
)
load("//tools/build/bazel:p4lang_workspace.bzl", "generate_p4lang")
generate_p4lang()
load("//tools/build/bazel:gnmi_workspace.bzl", "generate_gnmi")
generate_gnmi()
load("//tools/build/bazel:gnoi_workspace.bzl", "generate_gnoi")
generate_gnoi()
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "build_bazel_rules_nodejs",
commit = "70406e05de721520ca568a17186de73e972d7651",
remote = "https://github.com/bazelbuild/rules_nodejs.git",
shallow_since = "1551145517 -0800",
)
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
node_repositories(
node_version = "8.11.1",
package_json = ["//tools/gui:package.json"],
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# buildifier is written in Go and hence needs rules_go to be built.
# See https://github.com/bazelbuild/rules_go for the up to date setup instructions.
http_archive(
name = "io_bazel_rules_go",
sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d",
urls = [
"https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains()
http_archive(
name = "com_github_bazelbuild_buildtools",
sha256 = "e0b5b400cfef17d65886365dc7289cb4ef8dfe07066165607413a271a32aa2a4",
strip_prefix = "buildtools-db073457c5a56d810e46efc18bb93a4fd7aa7b5e",
url = "https://github.com/bazelbuild/buildtools/archive/db073457c5a56d810e46efc18bb93a4fd7aa7b5e.zip",
)
load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")
buildifier_dependencies()