Skip to content

Conversation

@maff
Copy link
Contributor

@maff maff commented Jun 3, 2025

Adds a new option addJacksonAnnotations to instruct record-builder to add an @JsonPOJOBuilder annotation to the generated builder. While this implements library-specifics, it does not add Jackson as dependency (only on the test module).

Closes #229

@maff
Copy link
Contributor Author

maff commented Jun 13, 2025

@Randgalt any feedback on this approach? I would be great to have this as an option for projects relying on Jackson and still wanting to benefit from RecordBuilder's initialization & defaults logic.

return;
}

final var annotationSpec = AnnotationSpec
Copy link

@semyon-levin-workato semyon-levin-workato Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid it's not that simple. Recently, Jackson 3 was released with changed package names. Is it possible to check what annotations are presented on the classpath and add appropriate annotation here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make RecordBuilder Jackson-friendly

3 participants