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

Problem with gradle en eclipse because of automatic modules #130

Open
MrKuip opened this issue Mar 28, 2024 · 2 comments
Open

Problem with gradle en eclipse because of automatic modules #130

MrKuip opened this issue Mar 28, 2024 · 2 comments
Assignees
Labels

Comments

@MrKuip
Copy link

MrKuip commented Mar 28, 2024

Gradle and eclipse still do not support automatic modules very well.

They only accept automatic modules when the jar has a Automatic-Module-Name property
in the MANIFEST.MF.

The command 'jar -d --file compiler-2.25ea2.jar' displays module information:

No module descriptor found. Derived automatic module.

[email protected] automatic
requires java.base mandated
contains net.openhft.compiler
contains net.openhft.compiler.internal

it shows that the calculated module descriptor is 'compiler'.
Maybe a better name could be supplied.

Could you please add a Automatic-Module-Name property in the manifest? (or create a proper module with module-info.class)

@tgd tgd added the review label Jun 3, 2024
@yevgenp
Copy link
Contributor

yevgenp commented Jun 10, 2024

Hi @MrKuip.
Could you provide more details of how it exactly affects you (and what would be a 'correct' name)? Cause artifactId is actually compiler. Thus auto-derived module name is correct.

@MrKuip
Copy link
Author

MrKuip commented Jun 14, 2024

There are 2 options to make this work for gradle:

  1. There should be a Automatic-Module-Name property in the manifest.
  2. The library should have a proper module-info.class.

An auto-derived module name is not handled bij gradle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants