Skip to content

Commit cc8d2c5

Browse files
committed
when modernizing pom, exclude shared-dependencies and preserve apiary client versions
1 parent a22f364 commit cc8d2c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

monorepo-migration/modernize_pom.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ def modernize_pom(file_path, parent_version, source_repo_name=None, parent_artif
187187
in_dependency = False
188188
current_dependency_lines.append(line)
189189

190+
if current_artifact_id == 'google-cloud-shared-dependencies':
191+
continue
192+
190193
# Preservation logic:
191194
# 1. Has x-version-update comment
192195
# 2. Is NOT com.google group AND has a version tag
@@ -218,6 +221,9 @@ def modernize_pom(file_path, parent_version, source_repo_name=None, parent_artif
218221
current_dependency_lines.append(f"{indent}<version>{new_version}</version><!-- {{x-version-update:{marker_artifact}:current}} -->\n")
219222
should_preserve = True
220223
continue
224+
225+
if current_artifact_id and current_artifact_id.startswith('google-api-services-'):
226+
should_preserve = True
221227

222228
current_dependency_lines.append(line)
223229
if '{x-version-update:' in line:

0 commit comments

Comments
 (0)