ocpsoft / prettytime

Social Style Date and Time Formatting for Java
http://ocpsoft.org/prettytime/
Apache License 2.0
1.29k stars 252 forks source link

Create MRJAR with module-info.class #263

Open webracer999 opened 12 months ago

webracer999 commented 12 months ago

PR to issue #262

This creates a "Multi-Release JAR" (MRJAR). The generated jar works with Java 1.8 and Java >= 9.

For Java >= 9 a module-info.class is provided (META-INF/versions/9/module-info.class). This allows the usage of jlink-tool to generate custom java runtime image.

webracer999 commented 12 months ago

I have changed the module name to reverse DNS. It is advised according to https://stackoverflow.com/questions/43192741/how-should-i-name-my-java-9-module -> https://mail.openjdk.org/pipermail/jpms-spec-experts/2017-May/000687.html

bowbahdoe commented 8 months ago

I think there is nothing stopping this from being merged