Scala code will not compile Follow
I am currently getting the following error on all my scala files:
-target is deprecated: Scala 2.12 cannot emit valid class files for targets newer than 8 (this is possible with Scala 2.13). Use -release to compile against a specific platform API version.
This disables all the compilation problems when working on any scala file
This seemingly happened out of the blue for me, perhaps some sort of caching at play tho as I use gradle. I recently upgraded to Ventura...and subsequently upgraded to the latest IDEA.
Mac OS: Ventura
IntelliJ IDEA 2022.3 (Ultimate Edition)
Build #IU-223.7571.182, built on November 29, 2022
Scala plugin is updated
openjdk version "11.0.17" 2022-10-18 LTS
OpenJDK Runtime Environment Zulu11.60+19-CA (build 11.0.17+8-LTS)
OpenJDK 64-Bit Server VM Zulu11.60+19-CA (build 11.0.17+8-LTS, mixed mode)
I've restarted, rebooted, reinstalled, caches all deleted, to no avail....
Any hints as to what the root cause is? There's not much about to search about this error.
Please sign in to leave a comment.
creating a fresh workspace for my project has corrected the issue for me