I am using IntelliJ IDEA Ultimate 2016.2.1, installed the Project SDK in my version 1.8, the project language level to 8, the SDK module in my version 1.8 and the JDK home path in / Library / Java / JavaVirtualMachines / jdk 1. 8.0_91.jdk / Contents / Home.
I restarted the IDE.
However, I get ugly warnings that try-in-resources is not supported at this language level. I have not used less than language level 8 in IntelliJ, so this cannot be related to something that is not refreshing. I am using the gradle build configuration - cleared, built and trying to run - it says I have 1.5, but I can't figure out where 1.5 is indicated. In build.gradle, I use:
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.8
Should I write an IntelliJ error, or am I still missing something?
EDIT:
gradle termianl IntelliJ . , IntelliJ.