Skip to content

Commit a86e189

Browse files
authored
chore: make exception for non-cloud artifacts (#1787)
* bugfix: make exception for non-cloud artifacts * change format
1 parent 43c709a commit a86e189

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docker/owlbot/java/src/fix-poms.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,15 @@ def update_bom_pom(filename: str, modules: List[module.Module]):
279279
# is prefixed with `{main_artifact_group_id}.api.grpc`, rather than
280280
# `com.google.api.grpc`.
281281
# https://github.com/googleapis/google-cloud-java/issues/9125
282+
# However, some exceptions are com.google.area120 and com.google.analytics.
283+
# https://github.com/googleapis/google-cloud-java/issues/9304
282284
def _proto_group_id(main_artifact_group_id: str) -> str:
283-
prefix = "com.google" \
284-
if main_artifact_group_id == "com.google.cloud" \
285-
else main_artifact_group_id
285+
prefix = "com.google"
286+
list_of_group_id = ["com.google.cloud",
287+
"com.google.area120",
288+
"com.google.analytics"]
289+
if main_artifact_group_id not in list_of_group_id:
290+
prefix = main_artifact_group_id
286291
return f"{prefix}.api.grpc"
287292

288293

0 commit comments

Comments
 (0)