Language level is not picked up from gradle script

Answered

There is a long term pending issue: https://youtrack.jetbrains.com/issue/IDEA-83528.

Gradle 2.11 promised to solve it (https://youtrack.jetbrains.com/issue/IDEA-83528), but it still does not work with IDEA 15.0.2.

I traced it down and found that IDEA and Gradle still disagree about the exact notation.

Looking into the source I happily found it is about to be fixed:

https://github.com/JetBrains/intellij-community/blob/master/plugins/gradle/src/org/jetbrains/plugins/gradle/service/project/BaseGradleProjectResolverExtension.java#L131

It's currently on the "master" branch. Any change to get it back ported to "143" to get it soon with 15.x?

Just a fix for the root project would be great!

May be to extend LanguageLevel.parse()  to mach its own.name() ...?

Dieter.

4 comments
Comment actions Permalink

Could you please try IDEA 16 EAP and see if it's fixed there?

0
Comment actions Permalink

I'll try tomorrow. Any hints about future release plans for 15.x and 16?

0
Comment actions Permalink

IDEA 16 will be released in a couple of weeks, only safe fixes for critical issues will be backported into 15.

1
Comment actions Permalink

It works with IDEA 16 !

I did not expect so see IDEA 16 that early because I did not read the blog before.

Seems the project structure uses module groups now. Have to play around with.

We switched from SVN to Git these days and I reorganize our project structure anyway to get all .idea files generated by gradle import.

0

Please sign in to leave a comment.