RoboVM Plugin keeps resetting the Java language level to 1.8 in IntelliJ #1224

Closed
noblemaster opened this Issue Jan 1, 2016 · 3 comments

Projects

None yet

3 participants

@noblemaster

The fix implemented in #1140 keeps resetting the language level across all modules to 1.8. I don't mind the RoboVM-related modules to be at 1.8, but other modules with server code etc. cannot be at 1.8. It's impossible now to change other modules to anything other than 1.8 as it it reset immediately back to 1.8.

Here is the code:
robovm/robovm-idea@bb8f8c2

Suggested Fixes:

  • Option A. Can the plugin ONLY set the language level to 1.8 if it is an actual RoboVM project?
  • Option B. If the above is not possible: can we have a checkbox for the RoboVM plugin settings to disable resetting all the language levels?
@badlogic badlogic added the bug label Jan 13, 2016
@badlogic badlogic self-assigned this Jan 13, 2016
@badlogic badlogic removed the bug label Jan 13, 2016
@badlogic badlogic added this to the 1.13 milestone Jan 13, 2016
@badlogic
Contributor

It is hard for us to detect which modules require Java 8 and which don't. Sadly, the Gradle integration in IntelliJ IDEA doesn't load the language level from the Gradle build files. Upon importing a Gradle project with a language level requirement of 8, things would just break, and new users would be confused.

I therefor went with Option B and added a setting that lets you disable this forceful language level setting.

@badlogic badlogic closed this in 64745f4 Jan 13, 2016
@badlogic badlogic removed the in progress label Jan 13, 2016
@noblemaster

Thanks :)

@NoahAndrews

The latest version of Gradle claims to fix this problem!
https://docs.gradle.org/2.12/release-notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment