skinny85 / jilt

Java annotation processor library for auto-generating Builder (including Staged Builder) pattern classes
Other
240 stars 12 forks source link

Provide a OpenRewrite recipe for migration other libraries @Builder solutions to Jilt #30

Open lobaorn opened 1 week ago

lobaorn commented 1 week ago

Given the recent support of Lombok in OpenRewrite (Youtube and GitHub) it would be really useful to have a recipe for migrating Lomboks @Builder to Jilt.

Also I believe there is at least another Builder solution in RecordBuilder that could have a recipe as well.

I know that @TimTeBeek can have some directions of how to do it, or a timeline of the definite support of Lombok annotations for the recipes to work. I have seen that at least one issue still had problem with Lombok annotation behavior.

skinny85 commented 2 days ago

Thanks for opening the issue @lobaorn.

A few questions, so I understand more:

  1. Are you saying the recipe would be simply changing @lombok.Builder to @org.jilt.Builder? Or is the idea for it to be more clever than that?
  2. Where do these recipes live? Is there some sort of registry they're pulled from?

Thanks, Adam