As our default value for release is plugged onto maven.compiler.target, we end up with the default behavior of setting -release:8 which now triggers a warning.
Modification:
Don't set -release is it's deprecated. If target is not explicitly defined, use the release value to set the target instead.
Motivation:
Scala 2.13.9 has deprecated -release in favor of -target, see https://www.scala-lang.org/news/2.13.9
As our default value for
release
is plugged ontomaven.compiler.target
, we end up with the default behavior of setting-release:8
which now triggers a warning.Modification:
Don't set
-release
is it's deprecated. Iftarget
is not explicitly defined, use therelease
value to set thetarget
instead.Result:
No more deprecation warning