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

fix Scalac options when using Scala 3, close #673 #674

Closed slandelle closed 1 year ago

slandelle commented 1 year ago

Motivation:

We're generating -release 1.8 for Scala 3. 1.8 is an illegal value for the -release option.

Moreover, -release has been renamed into -java-output-version in Scala 3.1.2.

Modifications:

Result:

Correct compiler options with Scala 3.