OSGeo / PROJ-JNI

Java Native Interface for PROJ
https://osgeo.github.io/PROJ-JNI/
MIT License
23 stars 15 forks source link

When to drop Java 8 support? #65

Closed desruisseaux closed 1 year ago

desruisseaux commented 1 year ago

With the upgrade to GeoAPI 3.0.2 (issue #64), PROJ-JNI is now a Jigsaw module (issue #15). We have done that while preserving Java 8 compatibility by using the multi-version capability of JAR files. However it makes the project more complicated. A few source files are duplicated in the java9 directory with slightly different code, for example with slightly different use of ServiceLoader. Those duplications increase the risk of discrepancies if a developer changes a Java 8 source file and forget to update the corresponding Java 9+ source file. The root pom.xml file is also more complicated with an Ant task for generating the multi-version JAR file.

When can simplify the project by dropping Java 8 support. The question is when? (no need to be now since we have a solution that works for now).

desruisseaux commented 1 year ago

As discussed in https://github.com/OSGeo/PROJ-JNI/discussions/67, the 2.0 release has a note saying that it may be the last release supporting Java 8. Having hear no comment in the last 2 months, we will proceed unless there is a last minute objection posted on this issue.

desruisseaux commented 1 year ago

Done, except for the use of logger-neutral API which is the subject of issue #66.