-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AddAnnotationProcessor
recipe
#4694
Conversation
rewrite-maven/src/test/java/org/openrewrite/maven/AddAnnotationProcessorTest.java
Outdated
Show resolved
Hide resolved
rewrite-maven/src/main/java/org/openrewrite/maven/AddAnnotationProcessor.java
Outdated
Show resolved
Hide resolved
rewrite-maven/src/main/java/org/openrewrite/maven/AddAnnotationProcessor.java
Outdated
Show resolved
Hide resolved
rewrite-maven/src/main/java/org/openrewrite/maven/AddAnnotationProcessor.java
Outdated
Show resolved
Hide resolved
reverse arguments on equal check so no null checks are needed Adjust name and desc to match recipe
<path> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok-mapstruct-binding</artifactId> | ||
<version>0.1.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd intentionally changed this to use a mismatched version; should we perhaps override any existing version here? Or only when lower than the version we're intended to add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elsewhere we have similar classes in src/main as well; makes for nicer usage to move this up now as well.
rewrite-maven/src/main/java/org/openrewrite/maven/AddAnnotationProcessor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved already; do let me know your thoughts on the question I'd put on the test before a merge.
What's changed?
Introduce new recipe for adding annotation processors to the maven compiler plugin
What's your motivation?
lombok-mapstruct-binding
during Java 17 migration when both lombok and mapstruct are used rewrite-migrate-java#610relies on adding the annotation processor for both maven and gradle
Anything in particular you'd like reviewers to focus on?
Anyone you would like to review specifically?
@timtebeek
Checklist