1*e07d83d3SAndroid Build Coastguard Workerworkspace(name = "examples") 2*e07d83d3SAndroid Build Coastguard Worker 3*e07d83d3SAndroid Build Coastguard Workerload("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4*e07d83d3SAndroid Build Coastguard Worker 5*e07d83d3SAndroid Build Coastguard Worker# For released versions, use release tag: 6*e07d83d3SAndroid Build Coastguard Worker# http_archive( 7*e07d83d3SAndroid Build Coastguard Worker# name = "io_grpc_grpc_java", 8*e07d83d3SAndroid Build Coastguard Worker# sha256 = "<SHA>", 9*e07d83d3SAndroid Build Coastguard Worker# strip_prefix = "grpc-java-<TAG>", 10*e07d83d3SAndroid Build Coastguard Worker# url = "https://github.com/grpc/grpc-java/archive/<TAG>.zip", 11*e07d83d3SAndroid Build Coastguard Worker# ) 12*e07d83d3SAndroid Build Coastguard Workerlocal_repository( 13*e07d83d3SAndroid Build Coastguard Worker name = "io_grpc_grpc_java", 14*e07d83d3SAndroid Build Coastguard Worker path = "..", 15*e07d83d3SAndroid Build Coastguard Worker) 16*e07d83d3SAndroid Build Coastguard Worker 17*e07d83d3SAndroid Build Coastguard Workerhttp_archive( 18*e07d83d3SAndroid Build Coastguard Worker name = "rules_jvm_external", 19*e07d83d3SAndroid Build Coastguard Worker sha256 = "c21ce8b8c4ccac87c809c317def87644cdc3a9dd650c74f41698d761c95175f3", 20*e07d83d3SAndroid Build Coastguard Worker strip_prefix = "rules_jvm_external-1498ac6ccd3ea9cdb84afed65aa257c57abf3e0a", 21*e07d83d3SAndroid Build Coastguard Worker url = "https://github.com/bazelbuild/rules_jvm_external/archive/1498ac6ccd3ea9cdb84afed65aa257c57abf3e0a.zip", 22*e07d83d3SAndroid Build Coastguard Worker) 23*e07d83d3SAndroid Build Coastguard Worker 24*e07d83d3SAndroid Build Coastguard Workerload("@rules_jvm_external//:defs.bzl", "maven_install") 25*e07d83d3SAndroid Build Coastguard Workerload("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS") 26*e07d83d3SAndroid Build Coastguard Workerload("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS") 27*e07d83d3SAndroid Build Coastguard Workerload("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories") 28*e07d83d3SAndroid Build Coastguard Worker 29*e07d83d3SAndroid Build Coastguard Workergrpc_java_repositories() 30*e07d83d3SAndroid Build Coastguard Worker 31*e07d83d3SAndroid Build Coastguard Worker# Protobuf now requires C++14 or higher, which requires Bazel configuration 32*e07d83d3SAndroid Build Coastguard Worker# outside the WORKSPACE. See .bazelrc in this directory. 33*e07d83d3SAndroid Build Coastguard Workerload("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS") 34*e07d83d3SAndroid Build Coastguard Workerload("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") 35*e07d83d3SAndroid Build Coastguard Worker 36*e07d83d3SAndroid Build Coastguard Workerprotobuf_deps() 37*e07d83d3SAndroid Build Coastguard Worker 38*e07d83d3SAndroid Build Coastguard Workermaven_install( 39*e07d83d3SAndroid Build Coastguard Worker artifacts = [ 40*e07d83d3SAndroid Build Coastguard Worker "com.google.api.grpc:grpc-google-cloud-pubsub-v1:0.1.24", 41*e07d83d3SAndroid Build Coastguard Worker "com.google.api.grpc:proto-google-cloud-pubsub-v1:0.1.24", 42*e07d83d3SAndroid Build Coastguard Worker ] + IO_GRPC_GRPC_JAVA_ARTIFACTS + PROTOBUF_MAVEN_ARTIFACTS, 43*e07d83d3SAndroid Build Coastguard Worker generate_compat_repositories = True, 44*e07d83d3SAndroid Build Coastguard Worker override_targets = IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS, 45*e07d83d3SAndroid Build Coastguard Worker repositories = [ 46*e07d83d3SAndroid Build Coastguard Worker "https://repo.maven.apache.org/maven2/", 47*e07d83d3SAndroid Build Coastguard Worker ], 48*e07d83d3SAndroid Build Coastguard Worker) 49*e07d83d3SAndroid Build Coastguard Worker 50*e07d83d3SAndroid Build Coastguard Workerload("@maven//:compat.bzl", "compat_repositories") 51*e07d83d3SAndroid Build Coastguard Worker 52*e07d83d3SAndroid Build Coastguard Workercompat_repositories() 53