Skip to content
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

Reduce set of JDK modules required by Enso #9868

Merged
merged 4 commits into from
May 7, 2024

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented May 7, 2024

Pull Request Description

On a quest to #9774 analyze content and size of runner native image, let's simplify module info to avoid modules like java.desktop, if possible.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Scala,
    Java,
  • Unit tests continue to pass

@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label May 7, 2024
@JaroslavTulach JaroslavTulach self-assigned this May 7, 2024
Copy link
Contributor

@hubertp hubertp left a comment

Choose a reason for hiding this comment

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

Didn't get that comment about the compiler dependency.

@@ -1,8 +1,8 @@
open module org.enso.runtime {
requires java.base;
requires java.net.http;
// compiler shall not be need
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Member Author

Choose a reason for hiding this comment

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

This commit is the answer. engine/runtime needed a transitive dependency on java.compiler because of using String constant from interpreter-dsl project.

@JaroslavTulach JaroslavTulach added the CI: Clean build required CI runners will be cleaned before and after this PR is built. label May 7, 2024
@JaroslavTulach
Copy link
Member Author

JaroslavTulach commented May 7, 2024

One (unrelated) test failure: https:/enso-org/enso/actions/runs/8983445979/job/24673241959?pr=9868#step:7:2517 - merging.

GitHub
Hybrid visual and textual functional programming. Contribute to enso-org/enso development by creating an account on GitHub.

@JaroslavTulach JaroslavTulach merged commit a69d89b into develop May 7, 2024
34 of 36 checks passed
@JaroslavTulach JaroslavTulach deleted the wip/jtulach/SimplifyModuleInfo9774 branch May 7, 2024 12:13
mergify bot pushed a commit that referenced this pull request May 8, 2024
Fixes regression introduced by #9868 - language server still needs dependency on `java.desktop` and `java.se`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Clean build required CI runners will be cleaned before and after this PR is built. CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants