Open LuciferYang opened 1 year ago
friendly ping @slandelle for this issue, I don’t know enough about the details of this project yet, do you think it’s rational to add a toggle for the automatically appending -release option
? Or what would be a more reasonable solution?
Thank you, @LuciferYang .
Here is the simplest reproducible example: https://github.com/LuciferYang/scala-maven-plugin-test
The reproducible code is very simple:
run
We can see the following compilation error:
mvn clean install -Dscala-maven-plugin.version=4.8.0
andmvn clean install -Dscala-maven-plugin.version=4.7.2
will have the same error.mvn clean install -Dscala-maven-plugin.version=4.7.1
will build successThe
-release
option is automatically appended after https://github.com/davidB/scala-maven-plugin/pull/648.Maybe we need to add an new option that doesn’t enforce appending
-release
when it’s false?