-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CLI build and integ tests to work with shading
This commit updates the Smithy CLI build to shade the JAR and still get the same treatment as other JARs (like adding a license). This required moving the shadow plugin to the main build.gradle and selectively disabling it for everything but smithy-cli. Then, when running the maven publish plugin, we switch between the normal JAR and the shaded JAR output. When running integration tests for a pre-release build, the JAR is not yet in Maven Central, which resulted in integration tests failing. The same problem occurred when running a classpath based command (they added built-in dependencies on the current CLI version, but those versions aren't yet in central). That isn't strictly necessary because we filter out resolved JARs from provided JARs. Integration tests for the CLI now use a specific version of Smithy, 1.26.0. The version doesn't really matter since it's ignored when performing the actual CLI build (since the provided JARs supersede the given version).
- Loading branch information
Showing
7 changed files
with
28 additions
and
31 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
3 changes: 2 additions & 1 deletion
3
smithy-cli/src/it/resources/software/amazon/smithy/cli/projects/aws-model/smithy-build.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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"version": "1.0", | ||
"maven": { | ||
"dependencies": ["software.amazon.smithy:smithy-aws-traits:${SMITHY_VERSION}"] | ||
// Normally, this could refer to SMITHY_VERSION, but that doesn't work for pre-release builds. | ||
"dependencies": ["software.amazon.smithy:smithy-aws-traits:1.26.0"] | ||
} | ||
} |
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