I want to use the recipe AddOrUpdateAnnotationAttribute
for adding parameters to a Java annotation. This is part of the package org.openrewrite.java
, so I've added only the following dependency in my init.gradle
:
dependencies {
rewrite("org.openrewrite:rewrite-java")
}
When I am running the recipe, I'm getting the error
There were problems parsing 1 sources: build.gradle
As the recipe only refactors java files, I wonder, why build.gradle
is parsed at all. How can I exclude build.gradle from being parsed?
I found a solution. I've added the following to my
init.gradle
file: