Skip to content

Commit

Permalink
fix(java): handle empty modules
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo committed Jan 11, 2023
1 parent 7197a00 commit e437de3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/owlbot/java/src/fix-poms.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ def main():
)
main_module = existing_modules[artifact_id]

if artifact_id in ["grafeas", "google-cloud-dns",
"google-cloud-notification"]:
# There are special libraries that are not automatically generated
print(f"Skipping a special case library {artifact_id} that do not have "
" the standard module structure.")
return

parent_artifact_id = f"{artifact_id}-parent"

if parent_artifact_id not in existing_modules:
Expand Down Expand Up @@ -468,7 +475,7 @@ def main():
)

if os.path.isfile("pom.xml"):
print("updating modules in parent pom.xml")
print(f"updating modules in parent pom.xml: {}", modules)
update_parent_pom("pom.xml", modules)
else:
print("creating missing parent pom.xml")
Expand Down

0 comments on commit e437de3

Please sign in to comment.