How to set jreVersion in build.gradle.kts?

Answered

This is from the page where in indicates we must set the Runtime for the developer instance:

"By default, the Gradle plugin will fetch and use the version of the JetBrains Runtime for the Development Instance corresponding to the version of the IntelliJ Platform used for building the plugin project. If required, an alternative version can be specified using jbrVersion attribute of runIde task.'

How do you do that in build.gradle or build.gradle.kts? I don't know that much Gradle, yet and would like a simple example. I can't see to find one anywhere right now.

0
1 comment

I did finally figure out where to set this, though it still doesn't work. You set it in the tasks section of build.gradle.kts like this:

runIde {
jbrVersion.set("jbr_jcef-11_0_11b1504.12.tar.gz")
}

The gets converted to the file jbr_jcef-11_0_11-osx-x64-b1504.12.tar.gz which it tries to load (and fails to load). 

[gradle-intellij-plugin :runIde] Cannot download JetBrains Java Runtime jbr_jcef-11_0_11-osx-x64-b1504.12.tar.gz. Run with --debug option to get more log output.

Note also that even though I'm on Apple Silicon and using the Apple Silicon version of IDEA, it's still filling in x64 and running the x64 version of CLion. I'll post a different query about that.

0

Please sign in to leave a comment.