-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add readme giving commands, expectations, actual and (small) triage.
- Loading branch information
1 parent
81edd76
commit 1463230
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Meant to show an issue with 'AddDependency' when used on modified LST. | ||
|
||
```sh | ||
mvn org.openrewrite.maven:rewrite-maven-plugin:5.39.0:run \ | ||
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-testing-frameworks:2.16.0 \ | ||
-Drewrite.activeRecipes=org.openrewrite.java.testing.hamcrest.MigrateHamcrestToAssertJ \ | ||
-Drewrite.exportDatatables=true | ||
``` | ||
|
||
After this, I expect `App.java` should be changed and `assertj` dependency | ||
should be added to the pom. However, only `App.java` is changed and code no | ||
longer compiles. Debugging suggests a condition related to `onlyIfUsing` in | ||
`AddDependency` is not seeing the modified LST. |