-
Notifications
You must be signed in to change notification settings - Fork 445
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
[Idea] JDK 9's jlink & sbt-native-packager? #1043
Comments
Hi, This is an interesting topic. I'm not sure yet if this is in scope for native-packager. Still if you have a good use case 😀 |
I have got a use case for this. My current build process is the following:
However, the size of the image is a problem: 5MB Alpine Linux OS + 30MB my java classes + 90MB JRE. So, I would like to use jlink to cut these 90MB of JRE. My build process would look like the following:
As a result, I should get the same redistributable docker image, but much smaller in size. |
Here is a parallel effort working to bring this to maven: maven-jlink-plugin |
any news on this? wondering how I can create jdk bundled installation packages compatible with Java 11 using sbt-native-packager; I need to build for Linux, Windows, Mac, but only run Linux, so this seems all very complicated. Would jlink offer a solution here? |
@nigredo-tori created an amazing jlink plugin. Available since See https://sbt-native-packager.readthedocs.io/en/latest/archetypes/misc_archetypes.html#jlink-plugin |
I'm wondering if there's anything that can be done with sbt-native-packager and JDK 9's jlink?
Here's the JEP:
Regards,
William
The text was updated successfully, but these errors were encountered: