Skip to content

Re-enable dependency based JRE #2434

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 1 commit into from
Jun 14, 2025

Conversation

afranken
Copy link
Member

@afranken afranken commented Jun 4, 2025

Description

Looks like this was finally fixed in a JRE 21 patch version

Related Issue

N/A

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

@afranken afranken requested a review from Copilot June 5, 2025 11:26
Copilot

This comment was marked as outdated.

@afranken afranken force-pushed the re-enable-dependency-based-JRE-construction branch from f75f5fc to 211294e Compare June 14, 2025 13:59
@afranken afranken requested a review from Copilot June 14, 2025 16:28
Copilot

This comment was marked as outdated.

It looks like this was finally fixed in a JRE 21 patch version
@afranken afranken force-pushed the re-enable-dependency-based-JRE-construction branch from 211294e to 8bd087c Compare June 14, 2025 17:24
@afranken afranken requested a review from Copilot June 14, 2025 22:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR re-enables the dependency-based JRE build by updating the Dockerfile to work with a Java 21 patch release.

  • Update jdeps command parameters to target Java 21 and adjust the classpath format.
  • Modify the jlink invocation to incorporate the dynamically determined module dependencies and include jdk.crypto.ec.
Comments suppressed due to low confidence (2)

docker/Dockerfile:49

  • Ensure that the output of 'jre-deps.info' is never empty and produces a properly formatted, comma-separated module list. If it might be empty, consider adding a check or a default module set to avoid a leading comma.
    --add-modules $(cat jre-deps.info),jdk.crypto.ec \

docker/Dockerfile:60

  • [nitpick] Consider removing outdated commented code if it is no longer relevant to improve clarity and reduce confusion in the Dockerfile.
#TODO: activate copy from builder stage when jdeps works again...

@afranken afranken merged commit 0ffa597 into main Jun 14, 2025
6 checks passed
@afranken afranken deleted the re-enable-dependency-based-JRE-construction branch June 14, 2025 22:42
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.

1 participant