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 a new plugin for setting up a trait package #138

Merged
merged 3 commits into from
Apr 19, 2024
Merged

Conversation

hpmellema
Copy link
Contributor

Background

Creates a new gradle plugin for quickly defining a smithy trait package. This plugin adds trait codegen to the
smithyBuild dependencies if it does not already exist. The output of the trait codegen plugin is then added to the main java sourceset.

Next steps:

  • Add a task to merge service provider files so existing traits can also live in the package.
  • Add integration tests
  • Possibly have the plugin auto-wire the smithy-model dependency

Testing

Manually tested with a local package.
Additional tests will be added as part of the next steps and will require some additional setup.


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 April 4, 2024 20:48
@hpmellema hpmellema merged commit 8a5c21b into main Apr 19, 2024
4 checks passed
@hpmellema hpmellema deleted the trait-package-plugin branch April 19, 2024 16:39
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