Skip to content
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 merge task to handle existing trait definitions #139

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

hpmellema
Copy link
Contributor

Background

Updates the existing trait codegen plugin to handle cases where the user has both generated and hand-written traits. A new mergeSpiFiles task is added that merges existing trait service provider files with the generated service provider file so all trait implementations included in the output JAR are correctly discovered.

Testing

Added two new integration tests for trait modules.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hpmellema hpmellema requested a review from a team as a code owner May 22, 2024 20:27
}

@trait(selector: "member")
string jsonName

Choose a reason for hiding this comment

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

nit: IMO, it would be better to name this something else, since jsonName is already a commonly used trait.

@hpmellema hpmellema merged commit 4650d02 into main Jun 13, 2024
4 checks passed
@hpmellema hpmellema deleted the trait-module-plugin branch June 13, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants