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

Modular Java builds #247

Open
3 tasks
Tracked by #221
sgammon opened this issue Jan 14, 2024 · 0 comments · May be fixed by #221
Open
3 tasks
Tracked by #221

Modular Java builds #247

sgammon opened this issue Jan 14, 2024 · 0 comments · May be fixed by #221
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sgammon
Copy link
Owner

sgammon commented Jan 14, 2024

Since GraalVM 21 (SDK release 23.1.x), the JPMS --module-path plays a larger role: support for polyglot language VMs with GVM's supported suite of languages now depends on Maven artifacts, instead of "components" distributed via the GraalVM updater.

In addition to this dependency change, VMs must be declared on the Java module path instead of the classpath, and loaded into the target app via one of the supported mechanisms (typically, module-info.java or --add-module).

Thus, it would be great to support modular Java builds, which should include:

  • Use of the main_module attribute to specify the entrypoint module
  • Calculation of the -modulepath flag, as applicable
  • Propagate --add-opens / --add-exports flags
@sgammon sgammon added the enhancement New feature or request label Jan 14, 2024
@sgammon sgammon added this to the 1.0.0 milestone Jan 14, 2024
@sgammon sgammon self-assigned this Jan 14, 2024
@sgammon sgammon linked a pull request Jan 14, 2024 that will close this issue
13 tasks
@sgammon sgammon linked a pull request Jan 14, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant