Unidata / geoapi-netcdf-java

netCDF-Java wrappers for the OGC GeoAPI
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Which Java compiler version? #3

Closed desruisseaux closed 3 years ago

desruisseaux commented 3 years ago

The code should be executable on Java 8. But should it be compiled with Java 8 as well, or do we use Java 11 with --release 8 option? The --release option is available since Java 9 and replaces the combination of -source, -target and -bootclasspath options that we were used to do for cross-version compilation. I guess that we should apply the same policy than the rest of UCAR library, but what is this policy?

lesserwhirls commented 3 years ago

Currently, we set both -source and -target to 1.8. We plan on moving both to Java 11 in version 7 of the library (will be starting that work in the next month or so).

lesserwhirls commented 3 years ago

Ah, forgot to add that we use Java 8 when creating our artifacts.

desruisseaux commented 3 years ago

Okay, thanks. I will modify the root pom.xml for compatibility with the javac compiler of JDK 8 (as opposed to compiling with JDK 15 with --release 8 option enabled).

lesserwhirls commented 3 years ago

Sounds good - thank you @desruisseaux!