You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/openrewrite/java/dependencies/ChangeDependency.java
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -32,56 +32,58 @@ public class ChangeDependency extends ScanningRecipe<ChangeDependency.Accumulato
32
32
@Option(displayName = "Old group ID",
33
33
description = "The old group ID to replace. The group ID is the first part of a dependency coordinate 'com.google.guava:guava:VERSION'. Supports glob expressions.",
34
34
example = "org.openrewrite.recipe")
35
-
finalStringoldGroupId;
35
+
privatefinalStringoldGroupId;
36
36
37
37
@Option(displayName = "Old artifact ID",
38
38
description = "The old artifact ID to replace. The artifact ID is the second part of a dependency coordinate 'com.google.guava:guava:VERSION'. Supports glob expressions.",
39
39
example = "rewrite-testing-frameworks")
40
-
finalStringoldArtifactId;
40
+
privatefinalStringoldArtifactId;
41
41
42
42
@Option(displayName = "New group ID",
43
43
description = "The new group ID to use. Defaults to the existing group ID.",
44
44
example = "corp.internal.openrewrite.recipe",
45
45
required = false)
46
46
@Nullable
47
-
finalStringnewGroupId;
47
+
privatefinalStringnewGroupId;
48
48
49
49
@Option(displayName = "New artifact ID",
50
50
description = "The new artifact ID to use. Defaults to the existing artifact ID.",
51
51
example = "rewrite-testing-frameworks",
52
52
required = false)
53
53
@Nullable
54
-
finalStringnewArtifactId;
54
+
privatefinalStringnewArtifactId;
55
55
56
56
@Option(displayName = "New version",
57
57
description = "An exact version number or node-style semver selector used to select the version number.",
58
58
example = "29.X",
59
59
required = false)
60
60
@Nullable
61
-
finalStringnewVersion;
61
+
privatefinalStringnewVersion;
62
62
63
63
@Option(displayName = "Version pattern",
64
64
description = "Allows version selection to be extended beyond the original Node Semver semantics. So for example," +
65
65
"Setting 'version' to \"25-29\" can be paired with a metadata pattern of \"-jre\" to select Guava 29.0-jre",
66
66
example = "-jre",
67
67
required = false)
68
68
@Nullable
69
-
finalStringversionPattern;
69
+
privatefinalStringversionPattern;
70
70
71
71
@Option(displayName = "Override managed version",
72
72
description = "If the new dependency has a managed version, this flag can be used to explicitly set the version on the dependency. The default for this flag is `false`.",
0 commit comments