Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 1 | workspace(name = "org_onosproject_onos") |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 2 | |
Thomas Vachuska | 46848a8 | 2018-08-13 14:32:05 -0700 | [diff] [blame] | 3 | load("//tools/build/bazel:bazel_version.bzl", "check_bazel_version") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 4 | |
Thomas Vachuska | 46848a8 | 2018-08-13 14:32:05 -0700 | [diff] [blame] | 5 | check_bazel_version() |
| 6 | |
Thomas Vachuska | c4d0377 | 2018-11-26 10:53:58 -0800 | [diff] [blame] | 7 | load("//tools/build/bazel:local_jar.bzl", "local_atomix", "local_jar", "local_yang_tools") |
Thomas Vachuska | 9379a07 | 2018-08-21 14:19:02 -0700 | [diff] [blame] | 8 | |
| 9 | # Use this to build against locally built arbitrary 3rd party artifacts |
| 10 | #local_jar( |
| 11 | # name = "atomix", |
Thomas Vachuska | d389a6e | 2018-10-29 15:17:17 -0700 | [diff] [blame] | 12 | # path = "/Users/tom/atomix/core/target/atomix-3.0.8-SNAPSHOT.jar", |
Thomas Vachuska | 9379a07 | 2018-08-21 14:19:02 -0700 | [diff] [blame] | 13 | #) |
| 14 | |
| 15 | # Use this to build against locally built Atomix |
| 16 | #local_atomix( |
Thomas Vachuska | d389a6e | 2018-10-29 15:17:17 -0700 | [diff] [blame] | 17 | # path = "/Users/tom/atomix", |
| 18 | # version = "3.0.8-SNAPSHOT", |
Thomas Vachuska | 9379a07 | 2018-08-21 14:19:02 -0700 | [diff] [blame] | 19 | #) |
| 20 | |
Thomas Vachuska | c4d0377 | 2018-11-26 10:53:58 -0800 | [diff] [blame] | 21 | # Use this to build against locally built YANG tools |
| 22 | #local_yang_tools( |
| 23 | # path = "/Users/andrea/onos-yang-tools", |
| 24 | # version = "2.6-SNAPSHOT", |
| 25 | #) |
| 26 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 27 | load("//tools/build/bazel:generate_workspace.bzl", "generated_maven_jars") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 28 | |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 29 | generated_maven_jars() |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 30 | |
| 31 | load("//tools/build/bazel:protobuf_workspace.bzl", "generate_protobuf") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 32 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 33 | generate_protobuf() |
| 34 | |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 35 | load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| 36 | |
| 37 | protobuf_deps() |
| 38 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 39 | load("//tools/build/bazel:grpc_workspace.bzl", "generate_grpc") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 40 | |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 41 | generate_grpc() |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 42 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 43 | load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories") |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 44 | |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 45 | # We omit as many dependencies as we can and instead import the same via |
| 46 | # deps.json, so they get wrapped properly for Karaf runtime. |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 47 | grpc_java_repositories( |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 48 | omit_bazel_skylib = False, |
| 49 | omit_com_google_android_annotations = False, |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 50 | omit_com_google_api_grpc_google_common_protos = True, |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 51 | omit_com_google_auth_google_auth_library_credentials = True, |
Carmelo Cascone | ef478a6 | 2019-01-29 18:45:22 -0800 | [diff] [blame] | 52 | omit_com_google_auth_google_auth_library_oauth2_http = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 53 | omit_com_google_code_findbugs_jsr305 = True, |
| 54 | omit_com_google_code_gson = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 55 | omit_com_google_errorprone_error_prone_annotations = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 56 | omit_com_google_guava = True, |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 57 | omit_com_google_guava_failureaccess = False, |
Carmelo Cascone | ef478a6 | 2019-01-29 18:45:22 -0800 | [diff] [blame] | 58 | omit_com_google_j2objc_j2objc_annotations = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 59 | omit_com_google_protobuf = True, |
| 60 | omit_com_google_protobuf_javalite = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 61 | omit_com_google_truth_truth = True, |
| 62 | omit_com_squareup_okhttp = True, |
| 63 | omit_com_squareup_okio = True, |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 64 | omit_io_grpc_grpc_proto = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 65 | omit_io_netty_buffer = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 66 | omit_io_netty_codec = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 67 | omit_io_netty_codec_http = True, |
| 68 | omit_io_netty_codec_http2 = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 69 | omit_io_netty_codec_socks = True, |
| 70 | omit_io_netty_common = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 71 | omit_io_netty_handler = True, |
| 72 | omit_io_netty_handler_proxy = True, |
| 73 | omit_io_netty_resolver = True, |
| 74 | omit_io_netty_tcnative_boringssl_static = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 75 | omit_io_netty_transport = True, |
| 76 | omit_io_opencensus_api = True, |
| 77 | omit_io_opencensus_grpc_metrics = True, |
Carmelo Cascone | cf6a828 | 2019-07-14 20:01:51 -0700 | [diff] [blame] | 78 | omit_io_perfmark = True, |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 79 | omit_javax_annotation = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 80 | omit_junit_junit = True, |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 81 | omit_net_zlib = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 82 | omit_org_apache_commons_lang3 = True, |
Ray Milkey | efb6cc5 | 2019-04-24 13:45:18 -0700 | [diff] [blame] | 83 | omit_org_codehaus_mojo_animal_sniffer_annotations = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 84 | ) |
| 85 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 86 | load("//tools/build/bazel:p4lang_workspace.bzl", "generate_p4lang") |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 87 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 88 | generate_p4lang() |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 89 | |
Yi Tseng | e671fc9 | 2018-10-31 15:34:30 -0700 | [diff] [blame] | 90 | load("//tools/build/bazel:gnmi_workspace.bzl", "generate_gnmi") |
| 91 | |
| 92 | generate_gnmi() |
| 93 | |
oleksandr.yashchuk@plvision.eu | 3dbcaaf | 2019-03-13 14:44:46 +0200 | [diff] [blame] | 94 | load("//tools/build/bazel:gnoi_workspace.bzl", "generate_gnoi") |
| 95 | |
| 96 | generate_gnoi() |
| 97 | |
Ray Milkey | 973d11e | 2018-12-13 15:55:08 -0800 | [diff] [blame] | 98 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
| 99 | |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 100 | git_repository( |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 101 | name = "build_bazel_rules_nodejs", |
Ray Milkey | bca5d0c | 2019-04-30 11:03:37 -0700 | [diff] [blame] | 102 | commit = "70406e05de721520ca568a17186de73e972d7651", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 103 | remote = "https://github.com/bazelbuild/rules_nodejs.git", |
Ray Milkey | bca5d0c | 2019-04-30 11:03:37 -0700 | [diff] [blame] | 104 | shallow_since = "1551145517 -0800", |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 105 | ) |
| 106 | |
| 107 | load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 108 | |
Sean Condon | 2f1fb8d | 2018-08-31 16:05:02 +0100 | [diff] [blame] | 109 | node_repositories( |
| 110 | node_version = "8.11.1", |
| 111 | package_json = ["//tools/gui:package.json"], |
| 112 | ) |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 113 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 114 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 115 | |
| 116 | # buildifier is written in Go and hence needs rules_go to be built. |
| 117 | # See https://github.com/bazelbuild/rules_go for the up to date setup instructions. |
| 118 | http_archive( |
| 119 | name = "io_bazel_rules_go", |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 120 | sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144", |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 121 | urls = [ |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 122 | "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", |
| 123 | "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 124 | ], |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 125 | ) |
| 126 | |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 127 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 128 | |
| 129 | go_rules_dependencies() |
| 130 | |
| 131 | go_register_toolchains() |
| 132 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 133 | http_archive( |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 134 | name = "bazel_gazelle", |
| 135 | sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b", |
| 136 | urls = [ |
| 137 | "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", |
| 138 | "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", |
| 139 | ], |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 140 | ) |
| 141 | |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 142 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 143 | |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 144 | gazelle_dependencies() |
| 145 | |
| 146 | http_archive( |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 147 | name = "com_github_bazelbuild_buildtools", |
Carmelo Cascone | 71ba99f | 2019-10-24 16:34:02 -0700 | [diff] [blame^] | 148 | sha256 = "05eb52437fb250c7591dd6cbcfd1f9b5b61d85d6b20f04b041e0830dd1ab39b3", |
| 149 | strip_prefix = "buildtools-0.29.0", |
| 150 | url = "https://github.com/bazelbuild/buildtools/archive/0.29.0.zip", |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 151 | ) |