Skip to content

Add SyncGradleExtPropertiesWithBom recipe#6958

Open
Jenson3210 wants to merge 2 commits intomainfrom
sync-ext-properties-with-bom
Open

Add SyncGradleExtPropertiesWithBom recipe#6958
Jenson3210 wants to merge 2 commits intomainfrom
sync-ext-properties-with-bom

Conversation

@Jenson3210
Copy link
Contributor

@Jenson3210 Jenson3210 commented Mar 12, 2026

Related to https://github.com/moderneinc/customer-requests/issues/1961

Summary

  • New recipe SyncGradleExtPropertiesWithBom that downloads a BOM and compares its properties against Gradle ext properties
  • When the BOM defines a higher version for a matching property, the ext property is updated to the BOM version (or removed entirely if removeRedundantOverrides is enabled)
  • Addresses cases where ext['jackson-bom.version'] implicitly overrides BOM-managed versions but is not updated by UpgradeDependencyVersion because there is no explicit reference in the build script

Test plan

  • Updates ext subscript property when BOM version is higher
  • Updates ext set() method property when BOM version is higher
  • Updates ext block set() property when BOM version is higher
  • No change when ext version is higher than BOM
  • No change when ext version equals BOM (without cleanup flag)
  • Removes ext property when BOM version is higher and removeRedundantOverrides is enabled
  • Ignores ext properties not present in the BOM

New recipe that downloads a BOM and syncs Gradle ext property overrides
with its properties. When the BOM defines a higher version, the ext
property is updated (or removed if removeRedundantOverrides is enabled).

This addresses cases where ext properties like ext['jackson-bom.version']
implicitly override BOM-managed versions but are not updated by
UpgradeDependencyVersion because there is no explicit reference in the
build script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant