blackears / svgSalamander

155 stars 56 forks source link

Added automatic module name #43

Closed maxwalls closed 5 years ago

maxwalls commented 5 years ago

Since Java 9, a Java project can be modular with the introduction of the Java Platform Module System. A Java module uses other modules by referencing their module names in its module-info.java file.

This commit adds the entry Automatic-Module-Name: com.kitfox.svg to the manifest file, which defines a stable module name for this project (otherwise an unstable module name based on the name of the jar file will be used). Having a stable module name ensures that this project can be used and referenced in a stable way in modular Java projects.

Since this commit only adds an entry to the manifest file, older Java targets will not be affected.

I used com.kitfox.svg as the module name, based on the main package name of the code.