This should have been implicit with the -release flag, and now this indeed appears to be the case. Tested with 2.12 and 2.13.0 Fixes the scalac part of #27079
* Nicer error message when jdk home path is not found * Also allow setting it via the environment