Remove redundant security resolution rules
Apache 2.0Remove resolutionStrategy.eachDependency rules that pin dependencies to versions that are already being managed by a platform/BOM to equal or newer versions. Only removes rules that have a security advisory identifier (CVE or GHSA) in the because clause, unless a custom pattern is specified.
org. openrewrite. gradle. RemoveRedundantSecurityResolutionRulesOptional
A regular expression pattern to identify security-related resolution rules by matching against the because clause. Rules matching this pattern will be considered for removal. The pattern is searched within the clause, so a because containing multiple identifiers (e.g., CVE-2024-1234, GHSA-abcd-1234-efgh) will match if any identifier matches. Default pattern matches CVE identifiers (e.g., CVE-2024-1234) and GitHub Security Advisory identifiers (e.g., GHSA-xxxx-xxxx-xxxx).
mod run . --recipe= org. openrewrite. gradle. RemoveRedundantSecurityResolutionRulesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.