Lombok best practices
MSALApplies all recipes that enforce best practices for using Lombok.
org. openrewrite. java. migrate. lombok. LombokBestPracticesmod run . --recipe= org. openrewrite. java. migrate. lombok. LombokBestPracticesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Enable Lombok annotation processor
- Migrate Lombok to a Java 11 compatible version
- Use Lombok logger annotations instead of explicit fields
- Convert getter methods to annotations
- Convert setter methods to annotations
- Use
@NoArgsConstructorwhere applicable - Use
@RequiredArgsConstructorwhere applicable - Use
@AllArgsConstructorwhere applicable - Change Maven dependency scope for
org.projectlombok:lomboktoprovided - Change Maven dependency scope for
org.projectlombok:lombok-mapstruct-bindingtoprovided - Exclude Maven dependency
org.projectlombok:lombok - Append to text file