Skip to content

Commit

Permalink
Add java_features.proto to kotlin_mvn release
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 618295219
  • Loading branch information
zhangskz authored and copybara-github committed Mar 22, 2024
1 parent e56ebce commit 369732a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ proto_library(
srcs = ["src/main/java/com/google/protobuf/java_features.proto"],
strip_import_prefix = "/java/core/src/main/java/com",
visibility = [
"//java/kotlin:__pkg__",
"//java/kotlin-lite:__pkg__",
"//java/lite:__pkg__",
"//pkg:__pkg__",
Expand Down
2 changes: 2 additions & 0 deletions java/kotlin/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -319,6 +320,7 @@ internal_gen_kt_protos(
"//:timestamp_proto",
"//:type_proto",
"//:wrappers_proto",
"//java/core:java_features_proto",
],
)

Expand Down
2 changes: 2 additions & 0 deletions java/kotlin/generate-sources-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit 369732a

Please sign in to comment.