Search code examples
scalaintellij-ideascalatest

IntelliJ throwing "java: error: option -source cannot be used together with --release"


IntelliJ is throwing "java: error: option -source cannot be used together with --release" when trying to run ScalaTests.

Note: Using the bundled JRE and IntelliJ Idea 2021.2.2.


Solution

  • Disable the --release compiler option in Settings | Build, Execution, Deployment | Compiler | Java Compiler.