Avoid recompiling java-only projects when switching scala version
Avoid recompiling the sbt plugin when switching scala versions