Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented Oct 26, 2020

Motivation

For managing protobuf libraries there is a maven bom file available for protobuf. The benefit of using this is that it can be imported to the project's pom.xml dependency management to make sure that the versions of the various protobuf libraries are aligned and use the same version.

Besides starting to use protobuf-bom, it was noticed that there are separate settings for protobuf protoc version (protoc3.version) and the protoc grpc plugin versions (protoc-gen-grpc-java.version). These versions should match the protobuf and grpc versions. The PR also covers an improvement for that.

One motivation of this PR is to prepare for the grpc upgrade that was attempted by #8351 , but reverted. Before doing the grpc upgrade, it would be useful to improve the protobuf & grpc dependency management provided by this PR.

Modifications

  • Use protobuf-bom to manage protobuf library versions
  • make protoc3.version match protobuf3.version
    • there should be no reason that these would be different
  • make grpc's protoc-gen-grpc-java.version match grpc.version
    • there should be no reason that there would be different

@lhotari
Copy link
Member Author

lhotari commented Oct 26, 2020

/pulsarbot run-failure-checks

@merlimat merlimat added this to the 2.7.0 milestone Oct 26, 2020
@lhotari
Copy link
Member Author

lhotari commented Oct 26, 2020

/pulsarbot run-failure-checks

1 similar comment
@lhotari
Copy link
Member Author

lhotari commented Oct 27, 2020

/pulsarbot run-failure-checks

- Use protobuf-bom to manage protobuf library versions
- make protoc3.version match protobuf3.version
  - there should be no reason that these would be different

- make grpc's protoc-gen-grpc-java.version match grpc.version
  - there should be no reason that there would be different
@lhotari lhotari force-pushed the lh-use-protobuf-bom branch from e556151 to 538b1bf Compare October 27, 2020 05:15
@lhotari
Copy link
Member Author

lhotari commented Oct 27, 2020

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit a3a2e74 into apache:master Oct 27, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
### Motivation

For managing protobuf libraries there is a maven bom file available for protobuf. The benefit of using this is that it can be imported to the project's pom.xml dependency management to make sure that the versions of the various protobuf libraries are aligned and use the same version.

Besides starting to use protobuf-bom, it was noticed that there are separate settings for protobuf protoc version (`protoc3.version`) and the protoc grpc plugin versions (`protoc-gen-grpc-java.version`). These versions should match the protobuf and grpc versions. The PR also covers an improvement for that.

One motivation of this PR is to prepare for the grpc upgrade that was attempted by apache#8351 , but reverted. Before doing the grpc upgrade, it would be useful to improve the protobuf & grpc dependency management provided by this PR.

### Modifications

* Use protobuf-bom to manage protobuf library versions
* make `protoc3.version` match `protobuf3.version`
  * there should be no reason that these would be different
* make grpc's `protoc-gen-grpc-java.version` match `grpc.version`
  * there should be no reason that there would be different
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
### Motivation

For managing protobuf libraries there is a maven bom file available for protobuf. The benefit of using this is that it can be imported to the project's pom.xml dependency management to make sure that the versions of the various protobuf libraries are aligned and use the same version.

Besides starting to use protobuf-bom, it was noticed that there are separate settings for protobuf protoc version (`protoc3.version`) and the protoc grpc plugin versions (`protoc-gen-grpc-java.version`). These versions should match the protobuf and grpc versions. The PR also covers an improvement for that.

One motivation of this PR is to prepare for the grpc upgrade that was attempted by apache#8351 , but reverted. Before doing the grpc upgrade, it would be useful to improve the protobuf & grpc dependency management provided by this PR.

### Modifications

* Use protobuf-bom to manage protobuf library versions
* make `protoc3.version` match `protobuf3.version`
  * there should be no reason that these would be different
* make grpc's `protoc-gen-grpc-java.version` match `grpc.version`
  * there should be no reason that there would be different
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants