blob: 9ccf9bf951cdb0e46db0eea9d80c97e9e708d32c [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001workspace(name = "org_onosproject_onos")
Ray Milkey6b3775a2018-06-28 11:18:44 -07002
Thomas Vachuska46848a82018-08-13 14:32:05 -07003load("//tools/build/bazel:bazel_version.bzl", "check_bazel_version")
Ray Milkey5063f5b2018-08-15 16:22:30 -07004
Thomas Vachuska46848a82018-08-13 14:32:05 -07005check_bazel_version()
6
Carmelo Cascone72893b72018-08-09 00:59:06 -07007load("//tools/build/bazel:generate_workspace.bzl", "generated_maven_jars")
Ray Milkey5063f5b2018-08-15 16:22:30 -07008
Ray Milkey7dac7da2017-08-01 16:56:05 -07009generated_maven_jars()
Carmelo Cascone72893b72018-08-09 00:59:06 -070010
11load("//tools/build/bazel:protobuf_workspace.bzl", "generate_protobuf")
Ray Milkey5063f5b2018-08-15 16:22:30 -070012
Carmelo Cascone72893b72018-08-09 00:59:06 -070013generate_protobuf()
14
15load("//tools/build/bazel:grpc_workspace.bzl", "generate_grpc")
Ray Milkey5063f5b2018-08-15 16:22:30 -070016
Ray Milkey30773582018-07-26 15:52:23 -070017generate_grpc()
Ray Milkey7dac7da2017-08-01 16:56:05 -070018
Carmelo Cascone72893b72018-08-09 00:59:06 -070019load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
Carmelo Cascone72893b72018-08-09 00:59:06 -070020
Ray Milkey5063f5b2018-08-15 16:22:30 -070021grpc_java_repositories(
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070022 omit_com_google_api_grpc_google_common_protos = True,
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070023 omit_com_google_auth_google_auth_library_credentials = True,
Carmelo Cascone72893b72018-08-09 00:59:06 -070024 omit_com_google_code_findbugs_jsr305 = True,
25 omit_com_google_code_gson = True,
Ray Milkey5063f5b2018-08-15 16:22:30 -070026 omit_com_google_errorprone_error_prone_annotations = True,
Carmelo Cascone72893b72018-08-09 00:59:06 -070027 omit_com_google_guava = True,
28 omit_com_google_protobuf = True,
29 omit_com_google_protobuf_javalite = True,
30 omit_com_google_protobuf_nano_protobuf_javanano = True,
31 omit_com_google_re2j = True,
32 omit_com_google_truth_truth = True,
33 omit_com_squareup_okhttp = True,
34 omit_com_squareup_okio = True,
35 omit_io_netty_buffer = True,
Carmelo Cascone72893b72018-08-09 00:59:06 -070036 omit_io_netty_codec = True,
Carmelo Cascone72893b72018-08-09 00:59:06 -070037 omit_io_netty_codec_http = True,
38 omit_io_netty_codec_http2 = True,
Ray Milkey5063f5b2018-08-15 16:22:30 -070039 omit_io_netty_codec_socks = True,
40 omit_io_netty_common = True,
Carmelo Cascone72893b72018-08-09 00:59:06 -070041 omit_io_netty_handler = True,
42 omit_io_netty_handler_proxy = True,
43 omit_io_netty_resolver = True,
44 omit_io_netty_tcnative_boringssl_static = True,
Ray Milkey5063f5b2018-08-15 16:22:30 -070045 omit_io_netty_transport = True,
46 omit_io_opencensus_api = True,
47 omit_io_opencensus_grpc_metrics = True,
48 omit_javax_annotation = False,
Carmelo Cascone72893b72018-08-09 00:59:06 -070049 omit_junit_junit = True,
Ray Milkey5063f5b2018-08-15 16:22:30 -070050 omit_org_apache_commons_lang3 = True,
Carmelo Cascone72893b72018-08-09 00:59:06 -070051)
52
Carmelo Cascone72893b72018-08-09 00:59:06 -070053load("//tools/build/bazel:p4lang_workspace.bzl", "generate_p4lang")
Carmelo Cascone72893b72018-08-09 00:59:06 -070054
Ray Milkey5063f5b2018-08-15 16:22:30 -070055generate_p4lang()
Carmelo Cascone72893b72018-08-09 00:59:06 -070056
Yi Tseng0f0ad3f2018-10-31 15:34:30 -070057load("//tools/build/bazel:gnmi_workspace.bzl", "generate_gnmi")
58
59generate_gnmi()
60
Ray Milkey6b3775a2018-06-28 11:18:44 -070061git_repository(
Carmelo Cascone72893b72018-08-09 00:59:06 -070062 name = "build_bazel_rules_nodejs",
63 remote = "https://github.com/bazelbuild/rules_nodejs.git",
Ray Milkey5063f5b2018-08-15 16:22:30 -070064 tag = "0.10.0", # check for the latest tag when you install
Ray Milkey6b3775a2018-06-28 11:18:44 -070065)
66
67load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
Ray Milkey5063f5b2018-08-15 16:22:30 -070068
Ray Milkey6b3775a2018-06-28 11:18:44 -070069node_repositories(package_json = ["//tools/gui:package.json"])
70
Ray Milkey5063f5b2018-08-15 16:22:30 -070071load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
72
73# buildifier is written in Go and hence needs rules_go to be built.
74# See https://github.com/bazelbuild/rules_go for the up to date setup instructions.
75http_archive(
76 name = "io_bazel_rules_go",
77 url = "https://github.com/bazelbuild/rules_go/releases/download/0.14.0/rules_go-0.14.0.tar.gz",
78)
79
80http_archive(
81 name = "com_github_bazelbuild_buildtools",
82 strip_prefix = "buildtools-a90c3a9f00e27973d3e759d17f2e2e7d9702d91b",
83 url = "https://github.com/bazelbuild/buildtools/archive/a90c3a9f00e27973d3e759d17f2e2e7d9702d91b.zip",
84)
85
86load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies")
87load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")
88
89go_rules_dependencies()
90
91go_register_toolchains()
92
93buildifier_dependencies()