Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use maven plugin to generate Client-Side CAB proto code. #1639

Open
wants to merge 3 commits into
base: client-side-cab
Choose a base branch
from

Conversation

huangjiahua
Copy link
Contributor

Use the protobuf-maven-plugin to automatically generate the protobuf Java code and remove the generated code.

The version of protoc is determined by the project.protobuf.version and it's currently 3.25.5.


Change-Id: I8154ea3c3c3126a1cf47e563b9b9e2f6b85c7f1a

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

@huangjiahua huangjiahua requested review from a team as code owners January 29, 2025 22:46
@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Jan 29, 2025
Change-Id: I8154ea3c3c3126a1cf47e563b9b9e2f6b85c7f1a
<version>0.6.1</version>
<configuration>
<protoSourceRoot>${project.basedir}/proto</protoSourceRoot>
<protocArtifact>com.google.protobuf:protoc:${project.protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we define a new maven property for the protoc version (i.e. something like project.protoc.version)? I would like to separate the Protoc and Protobuf-Java runtime to give us flexibility to move the runtime forward.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Comment on lines 1 to 13
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be safe, can the header be updated to match https://github.com/googleapis/google-auth-library-java/blob/main/java.header with the updated year? Same for the other proto files below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Change-Id: I2efb2fa0472e3af01a3955126cd27e37450ee95a
Change-Id: I87a5e073f16eac13ac74940bceca64fab21cee64
@huangjiahua huangjiahua requested a review from lqiu96 January 30, 2025 19:26
@lqiu96 lqiu96 deleted the branch googleapis:client-side-cab February 4, 2025 18:30
@lqiu96 lqiu96 closed this Feb 4, 2025
@lqiu96 lqiu96 reopened this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants