How do I mark my IntelliJ Plugin as requiring JRE 8?

Hi,

I wrote a file search plugin, but I wrote it in Java 8 which is fine for anyone running IntelliJ IDEA with Java 8 or with the bundled JDK but for anyone else it blows up and shows them an ugly error. Is there some way to mark the JRE version in the same way you can supply an IntelliJ build number in plugin.xml? I don't want to write Java 6, I want to use lambdas and new things, but it's unfortunate that people install this plugin and it just blows up for them. I explained the JRE 8 requirement in the installation instructions but that doesn't even show up in the plugin browser.

I looked here:

https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+Plugin+Structure

and here:

https://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products

and elsewhere but found nothing helpful.

Thank you.

2 comments

There is no possibility to mark a plugin in this way (and we don't plan to provide one). If you want to use lambdas and new things, please consider writing your plugin in Kotlin, which does have lambdas and new things, but compiles to regular Java 6 bytecode.

0

Ok I will check out Kotlin, thank you. Looks interesting.

0

Please sign in to leave a comment.