[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#895619: plexus-compiler: use --release instead of -source/-target for jdk9+ when setting defaults



Le 02/07/2018 à 17:26, Emmanuel Bourg a écrit :

> Someone has a better idea?

I've reverted the --release parameter in ant/1.10.4-2 and
plexus-compiler/2.8.4-2 for Maven.

The Java 8 compatibility can be preserved on a case by case basis by
setting the release parameter manually. For Maven based packages it's as
simple as specifying the maven.compiler.release property in
debian/maven.properties [1]. For Ant based packages the build.xml file
has to be patched, and the 'release' attribute added to the <javac> tasks.

I'll ensure that Tomcat and Jetty can still be run with Java 8 in Buster.

Emmanuel Bourg

[1] https://salsa.debian.org/java-team/jetty9/commit/fd1829d8


Reply to: