Skip to content

Add runtime plugin for generating stand-alone images #159

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 5 commits into from
Apr 11, 2025

Conversation

haydenbaker
Copy link
Contributor

@haydenbaker haydenbaker commented Jul 30, 2024

This is a draft until beryx/badass-runtime-plugin#153 is resolved (and jdk21 is supported)

Description of changes:

  • Add configuration for generating a self-contained runtime image using the badass-runtime plugin
  • Add configuration for JReleaser to use said images as part of the distributables (used in release)
  • images are generated under build/images (after running ./gradlew runtime)
  • Can test the image by running the launcher, ./build/image/smithy-language-server-darwin-aarch64/bin/smithy-language-server 0
  • More testing should be done with an update to the vscode-plugin to pull an image-zip directly from github release
    • We could fallback to coursier in cases where we don't support the platform
      By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@haydenbaker haydenbaker force-pushed the haydebak/add-runtime-plugin branch from c24468a to 0c3374d Compare July 30, 2024 18:46
@haydenbaker haydenbaker changed the title add runtime plugin for generating stand-alone images Add runtime plugin for generating stand-alone images Jul 30, 2024
haydenbaker and others added 3 commits April 9, 2025 09:05
Updates the runtime plugin to a fork with support for java 21, instead
of the upstream https://github.com/beryx/badass-runtime-plugin. See
beryx/badass-runtime-plugin#154 for more
details.

Also changed the java version back to 21.
@milesziemer milesziemer force-pushed the haydebak/add-runtime-plugin branch from 0c3374d to 62393b5 Compare April 9, 2025 13:19
@milesziemer
Copy link
Contributor

Moving out of draft. Will use fork of the runtime plugin until upstream gets java 21 support added. See 62393b5.

@milesziemer milesziemer marked this pull request as ready for review April 9, 2025 13:21
@milesziemer milesziemer requested a review from a team as a code owner April 9, 2025 13:21
@milesziemer milesziemer self-requested a review April 9, 2025 13:21
We had a github workflow that would run on a tag push, creating a new
release and uploading a zip of the language server. Jreleaser should
take care of all that now, so the workflow is unnecessary.
So we don't have to manually add the release notes to the github release
after it is published.

I added a custom task to read in the full changelog, and parse out the
entry for the latest version. The result is written out to a resources
file that I pointed the github release config to.

The jreleaser docs don't seem to be 100% clear on whether the changelog
is actually what ends up in the release notes, but it would make sense
to me, and the text in https://jreleaser.org/guide/latest/reference/release/github.html#_release_notes
suggests it.
@milesziemer milesziemer force-pushed the haydebak/add-runtime-plugin branch from 81e98a8 to 9479b25 Compare April 9, 2025 18:43
@milesziemer milesziemer merged commit 6341ac7 into main Apr 11, 2025
5 of 6 checks passed
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