Skip to content

Conversation

@loudmouth
Copy link

Fixes #392

All the things I reported in #392 suggested that there was a mismatch between protobuf-java and protoc. The documentation for protobuf and protobuf-java states:

Make sure the version number of the runtime matches (or is newer than) the version number of the protoc.

I confirmed that this works by adding the following to my own project and have now succesesfully built java_proto_library and java_grpc_library that usedon repeated enum:

# both of these are needed to properly override the rules_proto_grpc_java
bazel_dep(name = "rules_proto_grpc", version = "5.0.1")
git_override(
    module_name = "rules_proto_grpc",
    commit = "fdc3c887479dfe8da152c4863393388da0f40dfa",
    remote = "https://github.com/justtechnologies/rules_proto_grpc",
    strip_prefix = "modules/core",
)
bazel_dep(name = "rules_proto_grpc_java", version = "5.0.1")
git_override(
    module_name = "rules_proto_grpc_java",
    commit = "fdc3c887479dfe8da152c4863393388da0f40dfa",
    remote = "https://github.com/justtechnologies/rules_proto_grpc",
    strip_prefix = "modules/java",
)

@github-actions github-actions bot added dependencies Pull requests that update a dependency file lang-java Java rules specific labels Jan 7, 2025
@aaliddell
Copy link
Member

Hi, the released version 5.1.0 contains aligned protobuf-java and protoc version of 30.2

@aaliddell aaliddell closed this Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file lang-java Java rules specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java: Imported enums from local dependency proto files cannot be used as repeated members

2 participants