Fix wkt dupes (#8942)
* properly ignore WKTs in lang_proto_toolchain for java
We already pre-compile the well known types into the runtimes so they shouldn't be re-compiled. #8925
* remove accidental proto addition.
diff --git a/java/core/BUILD b/java/core/BUILD
index c65f10a..530d516 100644
--- a/java/core/BUILD
+++ b/java/core/BUILD
@@ -176,6 +176,21 @@
command_line = "--java_out=$(OUT)",
runtime = ":core",
visibility = ["//visibility:public"],
+ # keep this in sync w/ WELL_KNOWN_PROTO_MAP in //:BUILD
+ blacklisted_protos = [
+ "//:any_proto",
+ "//:api_proto",
+ "//:compiler_plugin_proto",
+ "//:descriptor_proto",
+ "//:duration_proto",
+ "//:empty_proto",
+ "//:field_mask_proto",
+ "//:source_context_proto",
+ "//:struct_proto",
+ "//:timestamp_proto",
+ "//:type_proto",
+ "//:wrappers_proto",
+ ],
)
proto_library(