Skip to content

Commit 3e131c8

Browse files
committed
skip managing boms for artifacts managed in monorepo
1 parent 157b459 commit 3e131c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

monorepo-migration/modernize_pom.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ def modernize_pom(file_path, parent_version, source_repo_name=None, parent_artif
298298
if in_dep_mgmt and current_artifact_id == 'gapic-libraries-bom':
299299
continue
300300

301+
# Skip boms for artifacts managed in the monorepo as their individual versions will be updated via x-version-update
302+
if in_dep_mgmt and current_artifact_id.endswith('-bom') and current_artifact_id in monorepo_versions:
303+
continue
304+
301305
if not in_dep_mgmt or should_preserve or (is_external and has_version) or (is_google_cloud_lib and has_version):
302306
new_lines.extend(current_dependency_lines)
303307
continue

0 commit comments

Comments
 (0)