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

chore: generate non-cloud client library #1770

Merged
merged 11 commits into from
Feb 24, 2023
Merged

Conversation

JoeWang1127
Copy link
Contributor

@JoeWang1127 JoeWang1127 commented Feb 22, 2023

@JoeWang1127 JoeWang1127 changed the title chore: add proto group prefix chore: add proto/grpc group id prefix Feb 23, 2023
@JoeWang1127 JoeWang1127 changed the title chore: add proto/grpc group id prefix chore: generate non-cloud client library Feb 23, 2023
@JoeWang1127 JoeWang1127 marked this pull request as ready for review February 23, 2023 23:58
@JoeWang1127 JoeWang1127 requested a review from a team as a code owner February 23, 2023 23:58
@@ -274,6 +274,12 @@ def update_bom_pom(filename: str, modules: List[module.Module]):

tree.write(filename, pretty_print=True, xml_declaration=True, encoding="utf-8")


def _proto_group_id(group_id: str) -> str:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def _proto_group_id(group_id: str) -> str:
def _proto_group_id(main_artifact_group_id: str) -> str:

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

@@ -274,6 +274,12 @@ def update_bom_pom(filename: str, modules: List[module.Module]):

tree.write(filename, pretty_print=True, xml_declaration=True, encoding="utf-8")


def _proto_group_id(group_id: str) -> str:
Copy link
Member

Choose a reason for hiding this comment

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

Can you add source code comment why we had to split the proto group IDs?

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

Copy link
Member

@suztomo suztomo left a comment

Choose a reason for hiding this comment

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

Small suggestion for comment and variable name. Approving this pull request regardless whether you incorporate it or not.

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.maps.api.grpc</groupId>
Copy link
Member

Choose a reason for hiding this comment

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

Nice test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New client generation script (pom.xml generation) should work with com.google.maps group ID
2 participants