davidB / scala-maven-plugin

The scala-maven-plugin (previously maven-scala-plugin) is used for compiling/testing/running/documenting scala code in maven.
https://davidb.github.io/scala-maven-plugin/
The Unlicense
557 stars 151 forks source link

maven.compiler.release support is not consistent with javac #686

Open slandelle opened 1 year ago

slandelle commented 1 year ago

We want scala-maven-plugin's support of maven.compiler.release to be consistent with maven-compiler plugin's.

On the Java side, maven.compiler.release translates to --release that was introduced in Java 9. Trying to use it with Java 8 triggers a invalid flag: --release crash. As of scala-maven-plugin 3.8.1, compilation succeeds.

We should crash as well.