-
Notifications
You must be signed in to change notification settings - Fork 233
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
base: client-side-cab
Are you sure you want to change the base?
Conversation
Change-Id: I8154ea3c3c3126a1cf47e563b9b9e2f6b85c7f1a
cab-token-generator/pom.xml
Outdated
<version>0.6.1</version> | ||
<configuration> | ||
<protoSourceRoot>${project.basedir}/proto</protoSourceRoot> | ||
<protocArtifact>com.google.protobuf:protoc:${project.protobuf.version}:exe:${os.detected.classifier}</protocArtifact> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
// 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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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:
Fixes #<issue_number_goes_here> ☕️
If you write sample code, please follow the samples format.