From c39a0836c7073104c465ce2c592533948b8fbd3c Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 16 Sep 2024 11:38:04 +0200 Subject: [PATCH] Deprecate `RemoveRedundantDependencyVersions.onlyIfVersionsMatch` in docs --- .../openrewrite/maven/RemoveRedundantDependencyVersions.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rewrite-maven/src/main/java/org/openrewrite/maven/RemoveRedundantDependencyVersions.java b/rewrite-maven/src/main/java/org/openrewrite/maven/RemoveRedundantDependencyVersions.java index deda626fd3b..c6c098b633a 100644 --- a/rewrite-maven/src/main/java/org/openrewrite/maven/RemoveRedundantDependencyVersions.java +++ b/rewrite-maven/src/main/java/org/openrewrite/maven/RemoveRedundantDependencyVersions.java @@ -57,7 +57,8 @@ public class RemoveRedundantDependencyVersions extends Recipe { String artifactPattern; @Option(displayName = "Only if versions match", - description = "Only remove the explicit version if it exactly matches the managed dependency version. " + + description = "Deprecated; use `onlyIfManagedVersionIs` instead. " + + "Only remove the explicit version if it exactly matches the managed dependency version. " + "When `false` explicit versions will be removed if they are older than or equal to the managed dependency version. " + "Default `true`.", required = false)