Add java_features.proto to kotlin_mvn release

PiperOrigin-RevId: 618295219
pull/16294/head
Sandy Zhang 8 months ago
parent b4e1870807
commit 0e4abf965c
  1. 7
      java/core/BUILD.bazel
  2. 2
      java/kotlin/BUILD.bazel
  3. 2
      java/kotlin/generate-sources-build.xml

@ -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"],
)

@ -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",
],
)

@ -4,6 +4,8 @@
<exec executable="${protoc}">
<arg value="--kotlin_out=${generated.sources.dir}"/>
<arg value="--proto_path=${protobuf.source.dir}"/>
<arg value="--proto_path=${protobuf.java_source.dir}"/>
<arg value="${protobuf.java_source.dir}/main/java/com/google/protobuf/java_features.proto"/>
<arg value="${protobuf.source.dir}/google/protobuf/any.proto"/>
<arg value="${protobuf.source.dir}/google/protobuf/api.proto"/>
<arg value="${protobuf.source.dir}/google/protobuf/descriptor.proto"/>

Loading…
Cancel
Save