Skip to content

Commit

Permalink
chore: make exception for non-cloud artifacts (#1787)
Browse files Browse the repository at this point in the history
* bugfix: make exception for non-cloud artifacts

* change format
  • Loading branch information
JoeWang1127 authored Apr 4, 2023
1 parent 43c709a commit a86e189
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docker/owlbot/java/src/fix-poms.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,15 @@ def update_bom_pom(filename: str, modules: List[module.Module]):
# is prefixed with `{main_artifact_group_id}.api.grpc`, rather than
# `com.google.api.grpc`.
# https://github.com/googleapis/google-cloud-java/issues/9125
# However, some exceptions are com.google.area120 and com.google.analytics.
# https://github.com/googleapis/google-cloud-java/issues/9304
def _proto_group_id(main_artifact_group_id: str) -> str:
prefix = "com.google" \
if main_artifact_group_id == "com.google.cloud" \
else main_artifact_group_id
prefix = "com.google"
list_of_group_id = ["com.google.cloud",
"com.google.area120",
"com.google.analytics"]
if main_artifact_group_id not in list_of_group_id:
prefix = main_artifact_group_id
return f"{prefix}.api.grpc"


Expand Down

0 comments on commit a86e189

Please sign in to comment.