Issue
Intellij run application had the following error
Error:java: javacTask: source release 1.8 requires target release 1.8
Solution
Try to go to File –> Settings –> Build, Execution, Deployment –> Java Compiler.
Change the “Target bytecode version” to 1.8 of the module that you are working for