externalsortinginjava
externalsortinginjava copied to clipboard
Please add a module-info.java in order to make it a module.
Please add a module-info.java in order to make it a module.
Could you contribute a PR?
done :-)
@joehei Thanks for the PR. It seems to break our tests... Presumably the issue is that it breaks backward compatibility with Java 8.
Many users are going to stick with Java 8. It seems unwise to break compatibility with Java 8. Is there a way around this?
I believe the standard approach is to compile everything targeting Java 8, except for the module-info.java
file, which should be compiled targeting Java 9+. Then package all the class files in a JAR and publish it.
If the library is used on Java 9+ and placed on the module-path, then the module-info file is used. Otherwise, if the code is placed on the class-path, or is used on Java 8, then the module-info file is ignored.
Note this is not the same thing as the multi-release JAR feature.