diff --git a/BUILD b/BUILD index cf5f0a8742..38793293a6 100644 --- a/BUILD +++ b/BUILD @@ -771,7 +771,14 @@ internal_protobuf_py_tests( proto_lang_toolchain( name = "cc_toolchain", - runtime = ":protobuf", command_line = "--cpp_out=$(OUT)", + runtime = ":protobuf", visibility = ["//visibility:public"], ) + +proto_lang_toolchain( + name = "java_toolchain", + command_line = "--java_out=$(OUT)", + runtime = ":protobuf_java", + visibility = ["//visibility:public"], +)