Skip to content

Commit 402be47

Browse files
authored
Update description for onlyIfUsing option
Clarified description for 'onlyIfUsing' option to specify its importance in multi-module projects. Fixes #5795
1 parent f6ab322 commit 402be47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rewrite-maven/src/main/java/org/openrewrite/maven/AddDependency.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public class AddDependency extends ScanningRecipe<AddDependency.Scanned> {
9191
Boolean releasesOnly;
9292

9393
@Option(displayName = "Only if using",
94-
description = "Used to determine if the dependency will be added and in which scope it should be placed.",
94+
description = "Used to determine if the dependency will be added and in which scope it should be placed. " +
95+
"Required for multi-module projects to avoid adding dependencies unnecessarily.",
9596
example = "org.junit.jupiter.api.*",
9697
required = false)
9798
@Nullable

0 commit comments

Comments
 (0)