Sync Gradle ext properties with BOM
Apache 2.0Downloads a BOM and compares its properties against Gradle ext properties. When the BOM defines a higher version for a property, the ext property is updated to match (or removed if removeRedundantOverrides is enabled, unless a build script reads it). With removeRedundantOverrides, a property whose value refers to an entry of gradle.properties is compared by that entry's value.
org. openrewrite. gradle. SyncGradleExtPropertiesWithBomRequired
The groupId of the BOM to sync with.
The artifactId of the BOM to sync with.
The version of the BOM to sync with. An exact version, or a selector such as 3.4.x which resolves to the latest matching release.
Optional
When enabled, ext properties whose value is lower than or equal to the BOM version will be removed entirely instead of updated, since the BOM default is now sufficient. A property that a build script reads is kept and updated instead.
mod run . --recipe= org. openrewrite. gradle. SyncGradleExtPropertiesWithBom \
-P groupId= org. springframework. boot \
-P artifactId= spring-boot-dependencies \
-P version=3.4.0Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.