When creating a modular JAR file and indexing is enabled, the module-info.class entry is missing from the resulting INDEX.LIST file.
The root cause is because the current implementation of JarToolModularJarArchiver initially does not add the module-info classes to the JAR archive. It adds them later but it does not update the index.