Java-Runtime-Compiler
Java-Runtime-Compiler copied to clipboard
Problem with gradle en eclipse because of automatic modules
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)
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.
There are 2 options to make this work for gradle:
- There should be a Automatic-Module-Name property in the manifest.
- The library should have a proper module-info.class.
An auto-derived module name is not handled bij gradle.