From 0e4abf965ca48568457824ddb7944a4e70674411 Mon Sep 17 00:00:00 2001 From: Sandy Zhang Date: Fri, 22 Mar 2024 14:55:29 -0700 Subject: [PATCH] Add java_features.proto to kotlin_mvn release PiperOrigin-RevId: 618295219 --- java/core/BUILD.bazel | 7 ++++++- java/kotlin/BUILD.bazel | 2 ++ java/kotlin/generate-sources-build.xml | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/java/core/BUILD.bazel b/java/core/BUILD.bazel index 92d9982815bf..146cacc7b5c7 100644 --- a/java/core/BUILD.bazel +++ b/java/core/BUILD.bazel @@ -170,7 +170,12 @@ proto_library( name = "java_features_proto", srcs = ["src/main/java/com/google/protobuf/java_features.proto"], strip_import_prefix = "/java/core/src/main/java/com", - visibility = ["//pkg:__pkg__"], + visibility = [ + "//java/kotlin:__pkg__", + "//java/kotlin-lite:__pkg__", + "//java/lite:__pkg__", + "//pkg:__pkg__", + ], deps = ["//:descriptor_proto"], ) diff --git a/java/kotlin/BUILD.bazel b/java/kotlin/BUILD.bazel index 2d17a71d474c..5be27de293ce 100644 --- a/java/kotlin/BUILD.bazel +++ b/java/kotlin/BUILD.bazel @@ -60,6 +60,7 @@ kt_jvm_export( pom_template = "//java/kotlin:pom_template.xml", resources = [ "//:well_known_type_protos", + "//java/core:java_features_proto", "//src/google/protobuf:descriptor_proto_srcs", ], tags = ["manual"], @@ -319,6 +320,7 @@ internal_gen_kt_protos( "//:timestamp_proto", "//:type_proto", "//:wrappers_proto", + "//java/core:java_features_proto", ], ) diff --git a/java/kotlin/generate-sources-build.xml b/java/kotlin/generate-sources-build.xml index 6963f3717f57..9a0ec1dcc05f 100644 --- a/java/kotlin/generate-sources-build.xml +++ b/java/kotlin/generate-sources-build.xml @@ -4,6 +4,8 @@ + +