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
gradlew rewriteRun
...
> Task :rewriteRun
Validating active recipes
Recipe validation error in initialization: DeclarativeRecipe must not contain uninitialized recipes. Be sure to call .initialize() on DeclarativeRecipe.
Recipe validation error in my.Migration.recipeList[2] (in file:/.../rewrite.yml): recipe 'org.openrewrite.java.spring.boot3.SpringBoot3BestPractices' does
not exist.
Thanks for pointing this out! Indeed it's hard to keep the plugin documentation updated when it's not automatically generated; for the Maven plugin we have an alternative in the form of: https://openrewrite.github.io/rewrite-maven-plugin/run-mojo.html#failOnInvalidActiveRecipes
For the Gradle plugin I'm not aware of any plugin to generate plugin documentation, but perhaps I'm just not fully caught up there; any pointers appreciated!
What problem are you trying to solve?
The
failOnInvalidActiveRecipes
option is not documented (maven and gradle).Fro example I'm referring to this line in the gradle plugin: https://github.com/openrewrite/rewrite-gradle-plugin/blob/main/plugin/src/main/java/org/openrewrite/gradle/RewriteExtension.java#L72
gradle.properties
build.gradle:
Describe the solution you'd like
I think updating this 2 pages should be enough:
https://docs.openrewrite.org/reference/gradle-plugin-configuration
https://docs.openrewrite.org/reference/rewrite-maven-plugin
along with other available options
Have you considered any alternatives or workarounds?
I looked into source code but not many people will do it ;)
Additional context
None
Are you interested in contributing this feature to OpenRewrite?
Not for the moment
The text was updated successfully, but these errors were encountered: