sourcegraph / batch-change-examples

A collection of examples for Batch Changes
Apache License 2.0
23 stars 2 forks source link

Example: openrewrite with Batch Changes #14

Closed malomarrec closed 3 years ago

malomarrec commented 3 years ago

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:

mrnugget commented 3 years ago

@malomarrec curious why it's re-opened and in progress? I thought https://github.com/sourcegraph/batch-change-examples/pull/27 fixed it?

malomarrec commented 3 years ago

Ah. I think automation did that.