Skip to content

4.0.0

Compare
Choose a tag to compare
@sambsnyd sambsnyd released this 17 Aug 22:02
  • Rename "Profile" to "Recipe"

Don't use this release, use 4.0.1 instead

This was mistakenly released with visitor and recipe having the type strings "openrewrite.org/v1beta" when it should have been "specs.openrewrite.org/v1beta"

Change "Profile" into "Recipe"

Everywhere the term "profile" used to appear, the term "recipe" now appears.
Recipe now must also:

  • Have names consisting of letters, numbers, underscores, and dashes
  • Be fully qualified with a package prefix

Simplify "Recipe" Concept

Recipes may no longer extend other recipes and must be uniquely named.

Previously it was allowable to scatter a recipe's definition around in pieces. One bit could come from a jar on the classpath, another from your user home directory, another from the project's rewrite config yaml, etc. These bits would be merged together into a single recipe at runtime.

This mechanism has been removed. Two recipes having the same name is now an error. Provide package-prefixes to namespace your recipes and avoid name collision.
To get the effects of multiple different recipes at once, merely list all of them as "active" to the build tool plugin.