load("@rules_cc//cc:defs.bzl", "cc_binary") load("@rules_jvm_external//:defs.bzl", "artifact") load("//:java_grpc_library.bzl", "java_rpc_toolchain") # This should not generally be referenced. Users should use java_grpc_library cc_binary( name = "grpc_java_plugin", srcs = [ "src/java_plugin/cpp/java_generator.cpp", "src/java_plugin/cpp/java_generator.h", "src/java_plugin/cpp/java_plugin.cpp", ], visibility = ["//visibility:public"], deps = [ "@com_google_protobuf//:protoc_lib", ], ) java_library( name = "java_grpc_library_deps__do_not_reference", exports = [ "//api", "//protobuf", "//stub", "//stub:javax_annotation", artifact("com.google.code.findbugs:jsr305"), artifact("com.google.guava:guava"), "@com_google_protobuf//:protobuf_java", ], ) java_library( name = "java_lite_grpc_library_deps__do_not_reference", exports = [ "//api", "//protobuf-lite", "//stub", "//stub:javax_annotation", artifact("com.google.code.findbugs:jsr305"), artifact("com.google.guava:guava"), ], ) java_rpc_toolchain( name = "java_grpc_library_toolchain", plugin = "//compiler:grpc_java_plugin", runtime = [":java_grpc_library_deps__do_not_reference"], visibility = ["//visibility:public"], ) java_rpc_toolchain( name = "java_lite_grpc_library_toolchain", plugin = "//compiler:grpc_java_plugin", plugin_arg = "lite", runtime = [":java_lite_grpc_library_deps__do_not_reference"], visibility = ["//visibility:public"], )