I am running a recipe on Mac OS from the command line using rewrite plugin version 4.46.0 The project is a multi module maven.
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -e -Drewrite.activeRecipes=com.xxx.upgrade_18
My rewrite.yml is this
type: specs.openrewrite.org/v1beta/recipe
name: com.xxx.upgrade_18
displayName: XXXX
recipeList:
- org.openrewrite.maven.AddDependency:
groupId: com.xxx.yyy
artifactId: zzzz
version: 9.9.0
When I run I get a NPE:
at org.openrewrite.internal.StringUtils.aspectjNameToPattern (StringUtils.java:647)
at org.openrewrite.java.search.UsesType.<init> (UsesType.java:33)
at org.openrewrite.maven.AddDependency.getApplicableTest (AddDependency.java:156)
at org.openrewrite.Recipe.getApplicableTests (Recipe.java:395)
From what I have read the getApplicableTest is called on every file in the project. How can I find the root cause?