-
Notifications
You must be signed in to change notification settings - Fork 172
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
Automatic-Module-Name is undefined in MANIFEST file #1239
Comments
Thanks for the issue! For 3.0 I'd prefer to also add proper module-info files that also declare the dependencies. |
Thank you for your reply.
Which one you mean?
Module names must be globally unique and traditionally the reverse DNS notation is used to secure the uniqueness.
I agree. My request is:
The following sentense is from the book Java 9 Modularity published by O'Reilly:
My request is not about the full modularization equipped with a module descriptor, bacause it takes long time as in the issue #1036, which seems to be posted 2 years ago. |
If I understand correctly the current automatic module names would be asciidoctorj.api and asciidoctorj. We can consider the move to |
Yes, you are right. Currently the users of AsciidoctorJ are using filename-based, non-canonical module names because the library lacks I hope that 3.0.0-alpha.2 contains the modification to the manifest files. |
The artifacts in my project are JPMS (Java Platform Module System) modules and one of them depends on AsciiDoctorJ API. It works fine with both the stable
2.5.10
and the latest3.0.0-alpha-1
.module-info.java
in my module is like this.Building this module using Maven emmits the following message:
This message prevents me from publishing my module to the Maven Central.
Fixing this problem is very easy. It just requires to add
Automatic-Module-Name
attribute in thebuild.gradle
in asciidoctorj-api project to name the automatic module explicitly:This does harm nothing when JVM is running without module path.
Please note that the name given for the automatic module illustrated above is simply constructed with the group ID and the artifact ID replacing
-
with.
. You can change it if there is more appropriate name for this project.Please also see this excellent article:
Automatic-Module-Name: Calling all Java Library Maintainers
The text was updated successfully, but these errors were encountered: