Automatically add -release flag to correctly compile Scala code #2031
Labels
integrations
priority / high
Any change that has a high priority to be fixed because of its immediate consequences.
Milestone
Currently if we use a newer version of Java for Bloop and try to compile with an older JDK we will get proper bytecode generated for Java files as they fork the compilation, however the same will not happen for Scala code.
For that to work we should automatically add
--release
flag similar to how ScalaCLI does it for all bloop plugins:This also allow us to only run Bloop on JDK 17 and use the improved support from scala-cli/bloop-core (or even migrate to it)
The text was updated successfully, but these errors were encountered: