Skip to content

Cleanup build script #222

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

Merged
merged 6 commits into from
Apr 16, 2025
Merged

Conversation

milesziemer
Copy link
Contributor

@milesziemer milesziemer commented Apr 16, 2025

Our build script was a mess and it has been bugging me for a while, so I'm
finally cleaning it up. I mostly reorganized things, and removed unnecessary
configuration, but there are some minor changes to note:

  • Got rid of the git-version plugin, which shouldn't be necessary since we
    use the VERSION file to manage the project version.
  • Got rid of the manual checkstyle dependency, since what we were setting
    it to was already the default.
  • Changed test logging to only log failed and skipped, instead of passed and
    stdout/err, which should reduce some noise.
  • Fixed the dependency declaration for smithy libraries, which weren't using
    string interpolation, so were literally "[smithyVersion, 2.0[". Either that was
    a thing you could do in groovy, or it's been busted since 2023. Yikes.

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

@milesziemer milesziemer requested a review from a team as a code owner April 16, 2025 22:19
@milesziemer milesziemer requested review from yasmewad and joewyz and removed request for yasmewad April 16, 2025 22:19
The dependency declaration for smithy libraries wasn't using string
interpolation, so the version was literally "[smithyVersion, 2.0[".
Maybe it was just a thing you could do in groovy, otherwise it's been
like that since 2023.
@milesziemer milesziemer merged commit e2cebf3 into smithy-lang:main Apr 16, 2025
3 checks passed
Comment on lines +54 to +57
implementation("software.amazon.smithy:smithy-build:[$smithyVersion, 2.0[")
implementation("software.amazon.smithy:smithy-cli:[$smithyVersion, 2.0[")
implementation("software.amazon.smithy:smithy-model:[$smithyVersion, 2.0[")
implementation("software.amazon.smithy:smithy-syntax:[$smithyVersion, 2.0[")
Copy link
Contributor

@haydenbaker haydenbaker Apr 17, 2025

Choose a reason for hiding this comment

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

You don't really need to set the version if you're using a range, just [1.0, 2.0)

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.

3 participants