-
Bug
-
Resolution: Fixed
-
P3
-
jfx11, jfx17
Automatic-Module-Name was introduced as a part of JDK-8209836 and the discussion is archived in openjfx-dev mailing list which spans over 2 months under the following threads:
* http://mail.openjdk.java.net/pipermail/openjfx-dev/2018-July/022145.html
* http://mail.openjdk.java.net/pipermail/openjfx-dev/2018-August/022285.html
The change was made to support Gradle projects in Eclipse IDE.
Things to note
---------------------
1. Change was made before Gradle had any decent JPMS support
2. JavaFX plugins were not created for Maven and Gradle
Issue
--------
Automatic-Module-Name is not supported in jlink and it causes issue if we try to bundle a Maven project using maven-jlink-plugin. Maven adds empty jars as transitive dependency to the classpath. These empty jars have Automatic-Module-Name and are treated as modules and included in the module-path. However, jlink has no support for them and it fails.
Solution
-----------
Automatic-Module-Name in empty jars was added as a temporary solution. Since they no longer serve any real world purpose, they should be removed.
* http://mail.openjdk.java.net/pipermail/openjfx-dev/2018-July/022145.html
* http://mail.openjdk.java.net/pipermail/openjfx-dev/2018-August/022285.html
The change was made to support Gradle projects in Eclipse IDE.
Things to note
---------------------
1. Change was made before Gradle had any decent JPMS support
2. JavaFX plugins were not created for Maven and Gradle
Issue
--------
Automatic-Module-Name is not supported in jlink and it causes issue if we try to bundle a Maven project using maven-jlink-plugin. Maven adds empty jars as transitive dependency to the classpath. These empty jars have Automatic-Module-Name and are treated as modules and included in the module-path. However, jlink has no support for them and it fails.
Solution
-----------
Automatic-Module-Name in empty jars was added as a temporary solution. Since they no longer serve any real world purpose, they should be removed.
- relates to
-
JDK-8273754 Re-introduce Automatic-Module-Name in empty jars
- Resolved
-
JDK-8209836 publications with empty jars need to be valid modules
- Resolved
-
JDK-8274103 javafx-base-17.jar and javafx-base-17-win.jar recognized as the same module
- Closed