> On Mar 7, 2018, at 2:47 AM, Stephen Colebourne <scolebou...@joda.org> wrote:
> 
> 1) Moving to Java 9 as a base would be a terrible choice. Java 9 is a
> six-month release which is about to be replaced by Java 10, which will
> then be replaced by Java 11. Thus, Java 8 is the only sensible
> baseline right now.
> 
> 2) Compiling a single jar file such that it works on Java 8 but has a
> module-info.class for Java 9 using Maven is a right pain in the
> backside. Most maven plugins cannot seamlessly handle it making the
> pom.xml much more complex. Note that you do not need a multi-release
> jar file to make it work. See
> https://github.com/ThreeTen/threeten-extra/blob/master/pom.xml 
> <https://github.com/ThreeTen/threeten-extra/blob/master/pom.xml>
Actually, you really do need to use a multi-release jar to include a 
module-info class file. Otherwise it may be sitting alongside of classes 
compiled for an earlier java release and various tools will fail because of it.

Ralph

Reply via email to