[ 
https://issues.apache.org/jira/browse/GEODE-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15232652#comment-15232652
 ] 

Mark Bretl edited comment on GEODE-1085 at 4/8/16 6:23 PM:
-----------------------------------------------------------

Looks to me like the workaround is to set 'languageLevel' in the idea plugin 
properties, gradle/ide.gradle

https://docs.gradle.org/current/dsl/org.gradle.plugins.ide.idea.model.IdeaProject.html

idea {
  project {
    //if you want to set specific jdk and language level
    jdkName = '1.8'
    languageLevel = '1.8'
  }
}


was (Author: mbretl):
Looks to me like the workaround is to set 'languageLevel' in the idea plugin 
properties, gradle/ide.gradle

https://docs.gradle.org/current/dsl/org.gradle.plugins.ide.idea.model.IdeaProject.html

idea {
  project {
    //if you want to set specific jdk and language level
    jdkName = '1.8'
    languageLevel = '1.8'
  }
}

> GRADLE UPDATE - Gradle bug defaults Language Level to 6 when IntelliJ imports 
> project from gradle
> -------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-1085
>                 URL: https://issues.apache.org/jira/browse/GEODE-1085
>             Project: Geode
>          Issue Type: Bug
>          Components: build
>            Reporter: nabarun
>            Assignee: Dan Smith
>
> When the project is imported into IntelliJ IDEA, the gradle plugin defaults 
> the language level to 6 ignore the setting in the gradle files. [level - 8]
> This is a known bug and also reported in GRADLE's JIRA page 
> https://issues.gradle.org/browse/GRADLE-2198
> and in IntelliJ JIRA page
> https://youtrack.jetbrains.com/issue/IDEA-96615#tab=Comments
> Gradle must be updated when this fix comes in or if a work around can be 
> devised in the meantime. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to