

Starting with version 3.1.2, if the JAR file contains module-info.class, this plugin will update the modular descriptor ( module-info.class) with additional attributes such as the list of packages included and will validate the resulting modular descriptor (for example if all services provided by the module are actually included in the JAR file).

If the project contains module-info.class the resulting JAR will be a Modular JAR without a need for any configuration regardless of the plugin version used.

Modular JAR files are JAR files with module-info.class file in the root directory (or in the versioned area for multi-release JAR files). The Java Platform Module System (JPMS) introduced changes in the JAR file specifications as well - Modular JAR files.
