intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Util.getBuiltinJbrVersion should allow getting secondJreBuild

Open baron1405 opened this issue 6 years ago • 4 comments

Currently the Util.getBuiltinJbrVersion method returns the jdkBuild version from the dependencies.txt file. Given that some plugin build may wish to use Java 8 instead of Java 11 or vice versa, the getBuiltinJbrVersion method should allow using the BBR specified by the secondJreBuild property. This could be an optional parameter on the method (e.g. useSecondary=false).

One use case is that I would like to be able to specify the JBR used in runIde (i.e. use the primary or secondary JBR).

baron1405 avatar Jul 23 '19 00:07 baron1405

I believe secondary jre will always be a temporary thing and I don't really want to introduce a new syntax for this. I think java 8 will be dropped soon and dependency.txt won't have it anymore.

zolotov avatar Oct 27 '19 19:10 zolotov

this is kinda obsolete now as we require Java 11

YannCebron avatar Nov 16 '20 13:11 YannCebron

at some point IJ will migrate to Java 14 or 15, so I'd keep the issue

zolotov avatar Nov 16 '20 15:11 zolotov

I closed the issue before reading @zolotov 's comment. I defer to his judgement on the status of this issue.

baron1405 avatar Nov 23 '20 21:11 baron1405

Given that runIde task now has dedicated jbrVersion parameter (https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#runide-task-jbrversion), is this still actual?

YannCebron avatar Sep 13 '22 10:09 YannCebron

This is no longer a factor given only a single JRE is used in IntelliJ at this point.

On Tue, Sep 13, 2022 at 3:04 AM Yann Cébron @.***> wrote:

Given that runIde task now has dedicated jbrVersion parameter ( https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#runide-task-jbrversion), is this still actual?

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/gradle-intellij-plugin/issues/413#issuecomment-1245185836, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHRTQ66EA535FFDVTFH3BTV6BGSJANCNFSM4IF6IK3Q . You are receiving this because you modified the open/close state.Message ID: @.***>

baron1405 avatar Sep 14 '22 03:09 baron1405