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 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 7 | load("//tools/build/bazel:generate_workspace.bzl", "generated_maven_jars") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 8 | |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 9 | generated_maven_jars() |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 10 | |
| 11 | load("//tools/build/bazel:protobuf_workspace.bzl", "generate_protobuf") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 12 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 13 | generate_protobuf() |
| 14 | |
| 15 | load("//tools/build/bazel:grpc_workspace.bzl", "generate_grpc") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 16 | |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 17 | generate_grpc() |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 18 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 19 | load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories") |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 20 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 21 | grpc_java_repositories( |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 22 | omit_com_google_api_grpc_google_common_protos = True, |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 23 | omit_com_google_auth_google_auth_library_credentials = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 24 | omit_com_google_code_findbugs_jsr305 = True, |
| 25 | omit_com_google_code_gson = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 26 | omit_com_google_errorprone_error_prone_annotations = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 27 | 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 Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 36 | omit_io_netty_codec = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 37 | omit_io_netty_codec_http = True, |
| 38 | omit_io_netty_codec_http2 = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 39 | omit_io_netty_codec_socks = True, |
| 40 | omit_io_netty_common = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 41 | 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 Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 45 | omit_io_netty_transport = True, |
| 46 | omit_io_opencensus_api = True, |
| 47 | omit_io_opencensus_grpc_metrics = True, |
| 48 | omit_javax_annotation = False, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 49 | omit_junit_junit = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 50 | omit_org_apache_commons_lang3 = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 51 | ) |
| 52 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 53 | load("//tools/build/bazel:p4lang_workspace.bzl", "generate_p4lang") |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 54 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 55 | generate_p4lang() |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 56 | |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 57 | git_repository( |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 58 | name = "build_bazel_rules_nodejs", |
| 59 | remote = "https://github.com/bazelbuild/rules_nodejs.git", |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 60 | tag = "0.10.0", # check for the latest tag when you install |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 61 | ) |
| 62 | |
| 63 | load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 64 | |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 65 | node_repositories(package_json = ["//tools/gui:package.json"]) |
| 66 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame^] | 67 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 68 | |
| 69 | # buildifier is written in Go and hence needs rules_go to be built. |
| 70 | # See https://github.com/bazelbuild/rules_go for the up to date setup instructions. |
| 71 | http_archive( |
| 72 | name = "io_bazel_rules_go", |
| 73 | url = "https://github.com/bazelbuild/rules_go/releases/download/0.14.0/rules_go-0.14.0.tar.gz", |
| 74 | ) |
| 75 | |
| 76 | http_archive( |
| 77 | name = "com_github_bazelbuild_buildtools", |
| 78 | strip_prefix = "buildtools-a90c3a9f00e27973d3e759d17f2e2e7d9702d91b", |
| 79 | url = "https://github.com/bazelbuild/buildtools/archive/a90c3a9f00e27973d3e759d17f2e2e7d9702d91b.zip", |
| 80 | ) |
| 81 | |
| 82 | load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 83 | load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies") |
| 84 | |
| 85 | go_rules_dependencies() |
| 86 | |
| 87 | go_register_toolchains() |
| 88 | |
| 89 | buildifier_dependencies() |
| 90 | |
ONOS Jenkins User | 03e5521 | 2018-08-14 22:13:58 +0000 | [diff] [blame] | 91 | ONOS_VERSION = "1.14.0-SNAPSHOT" |