-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail by default when a build plugin can't be found
smithy-build previously just logged an info when a build plugin couldn't be found on the classpath. This was a bad user experience for actually using Smithy. The requirement to be able to ignore a missing build plugin is really an edge case for build tools that want to be able to build just models and ignore other plugins, so those tools should opt-in to that behavior instead. Just logging was way too subtle for diagnosing issues with config files and dependencies.
- Loading branch information
Showing
6 changed files
with
111 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
smithy-build/src/test/resources/software/amazon/smithy/build/unknown-plugin-ignored.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"version": "1.0", | ||
"ignoreMissingPlugins": true, | ||
"plugins": { | ||
"unknown1": {} | ||
}, | ||
"projections": { | ||
"a": { | ||
"plugins": { | ||
"unknown2": {} | ||
} | ||
}, | ||
"b": { | ||
"plugins": { | ||
"unknown3": {} | ||
} | ||
} | ||
} | ||
} |