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 exception on implicit empty config #123

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

hpmellema
Copy link
Contributor

@hpmellema hpmellema commented Feb 19, 2024

Background

Previously, the plugin would use an empty smithy-build file if no build configs were specified and no smithy-build.json could be found at the project root. Most of the time customers have no smithy-build config in the project or extension would be in error (this would mean no plugins or projections are configured). This can lead to customer confusion.

This PR updates the plugin to require explicit acknowledgement that no build configs should be found (via empty set in smithyBuildConfigs property) and throws a helpful error otherwise. If the smithyBuildConfigs option is set to an empty set the plugin will still use the implicit empty build config.

Testing

New integration tests were added to check the behavior of this new option.


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

@hpmellema hpmellema merged commit 59f1454 into smithy-lang:main Feb 19, 2024
4 checks passed
@hpmellema hpmellema deleted the no-config branch February 19, 2024 20:27
hpmellema added a commit to hpmellema/smithy-gradle-plugin that referenced this pull request Mar 7, 2024
hpmellema added a commit that referenced this pull request Mar 7, 2024
hpmellema added a commit that referenced this pull request Mar 14, 2024
hpmellema added a commit that referenced this pull request Mar 14, 2024
hpmellema added a commit that referenced this pull request Mar 14, 2024
hpmellema added a commit that referenced this pull request Mar 15, 2024
Re-add changes from "Add exception on implicit empty config (#123)" that were temporarily removed
hpmellema added a commit that referenced this pull request Mar 18, 2024
Re-add changes from "Add exception on implicit empty config (#123)" that were temporarily removed
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