IntelliJ JavacTask Source Release Requires Target X Fix

Here’s the fix for the  Java:JavacTask: source release 8 requires target release 1.8 error in IntelliJ if you ever happen to run across it in your Compiler Output Window.

Our module’s name is “wicket-examples” and when we view the module compiler settings, everything looks good.

It’s a Maven Project and that looks good, too.

The problem lies behind the scenes in our IntelliJ IDE Compiler Settings. By default (with IntelliJ IDEA v14.x) the Javac compiler is set to 1.6. You can see that the “wicket-examples” needs a bump up to 1.8.

So bump it up there and you’ll be compiling ever so sweetly again.