Currently, we don't have a good Java example. openrewrite is a good candidate to showcase.
The current example (WIP) highlights a few friction points, that could be solved by showing a better tutorial.
openrewrite is AST-based, and it runs alongside build tool (eg. gradle). Running openrewrite requires making changes to the build config (config build.gradle) to add the rewrite plugin, and list recipes. This means that automating a code change requires:
automating (tempoary) changes to the build config reliably
in case recipes outside the default ones are added, copying them over to the container used in a batch change
discriminating between versions of Jaca and the build system before making a change
Currently, we don't have a good Java example. openrewrite is a good candidate to showcase.
The current example (WIP) highlights a few friction points, that could be solved by showing a better tutorial. openrewrite is AST-based, and it runs alongside build tool (eg. gradle). Running openrewrite requires making changes to the build config (config
build.gradle
) to add the rewrite plugin, and list recipes. This means that automating a code change requires: