I would like to set the java language level in gradle in IDE agnostic mode.
sourceCompatibility = 1.x at the root level seems deprecated in Gradle 2.21.
(edit: or is it? IntelliJ gives me a groovy validation error)
So, I found this to work.
idea { project { languageLevel = '1.7' } }
But no configuration here connects Gradle with IntelliJ IDEA, due to the structure of idea { } ...
Is there a way to do this in IDE agnostic mode?
I want my Gradle build script to run in any IDE (be it IntelliJ IDEA or Eclipse) or on Jenkins (or something else).
java intellij-idea gradle
vikingsteve
source share