llms.txt: machine-readable documentation index. Markdown version of this page is also available.

IntelliJ Platform Plugin SDK Help

JetBrains Runtime (JBR)

JetBrains Runtime (JBR) is a custom version of OpenJDK, specifically optimized for IntelliJ-based IDEs. It supports enhanced class redefinition (DCEVM), includes the Java Chromium Embedded Framework (JCEF), and improves aspects such as font rendering and keyboard support, thereby enhancing overall performance. IDEs built on the IntelliJ Platform rely on JBR for running. Hence, when developing plugins using the IntelliJ Platform Gradle Plugin, it's essential to have JBR provided.

For the best experience, it is recommended to rely on JBR bundled with the IntelliJ Platform used for development. If one is not available, i.e., when targeting IntelliJ Platform snapshot or nightly releases, there are other ways available for providing JetBrains Runtime in a required version or variant.

The JVM used to run Gradle is separate from the runtime used to run the target IDE and the toolchain used to compile the plugin. The Gradle plugin requires Java 17 or later, but the target IDE may require a newer Java version. See Requirements.

Bundled (Default)

IDE releases provided with JetBrains CDN (download.jetbrains.com) are OS-specific and contain JetBrains Runtime (JBR) already bundled within the archive. This is the recommended way for developing a plugin, as it comes in exactly the same version as JetBrains IDEs delivered to users.

To use this approach, no extra steps are required but declare the IntelliJ Platform, see: Target Platforms.

Obtained with IntelliJ Platform from Maven

If the IntelliJ Platform is resolved with the IntelliJ Maven Repository, it has no JetBrains Runtime (JBR) bundled. The plugin attempts to resolve a separate runtime automatically from the IDE's metadata. If the metadata doesn't specify a runtime, configure an explicit runtime or a toolchain.

To select Maven artifacts instead of the default installer distribution, set useInstaller = false as shown below. See Multi-OS Archives.

The explicit jetbrainsRuntime() declaration below illustrates this default. It uses the IntelliJ Platform's dependencies.txt file and the runtime repository included by defaultRepositories().

repositories { mavenCentral() intellijPlatform { defaultRepositories() jetbrainsRuntime() // ... } } dependencies { intellijPlatform { intellijIdea("2026.3") { useInstaller = false } jetbrainsRuntime() // ... } }
repositories { mavenCentral() intellijPlatform { defaultRepositories() jetbrainsRuntime() // ... } } dependencies { intellijPlatform { intellijIdea('2026.3') { useInstaller = false } jetbrainsRuntime() // ... } }

Note: As of version 2.2.0 of the IntelliJ Platform Gradle Plugin, explicitly specifying jetbrainsRuntime() in the repositories block is no longer necessary if defaultRepositories() is also specified.

Declared Explicitly

Choose an explicit runtime version compatible with the target IDE's Java requirement. Specify its version, variant, or exact build:

repositories { mavenCentral() intellijPlatform { defaultRepositories() jetbrainsRuntime() // ... } } dependencies { intellijPlatform { intellijIdea("2026.3") jetbrainsRuntime(version, variant, architecture) // or jetbrainsRuntimeExplicit(explicitVersion) // ... } }
repositories { mavenCentral() intellijPlatform { defaultRepositories() jetbrainsRuntime() // ... } } dependencies { intellijPlatform { intellijIdea '2026.3' jetbrainsRuntime(version, variant, architecture) // or jetbrainsRuntimeExplicit(explicitVersion) // ... } }

Note: As of version 2.2.0 of the IntelliJ Platform Gradle Plugin, explicitly specifying jetbrainsRuntime() in the repositories block is no longer necessary if defaultRepositories() is also specified.

Provided version, variant, and architecture parameters along with the explicitVersion are used to resolve the JetBrains Runtime archives published on GitHub Releases page.

To correctly understand the pattern, refer to the archive names in format:

jbr_[prefix]-[jdk]-[os]-[arch]-b[build].tar.gz

e.g.:

jbr_jcef-21.0.3-osx-aarch64-b446.1.tar.gz

which can be split into the following parts:

  • prefix = jcef

  • jdk = 21.0.3

  • os = osx

  • arch = aarch64

  • build = 446.1

Note that the version parameter is actually a combination of JDK and build numbers in format [jdk]b[build].

The helper's second argument is the variant (jcef by default), not the OS. It derives the OS from the host running Gradle and defaults the architecture to the host architecture.

On an Apple Silicon macOS host, the following Kotlin declarations resolve the jbr_jcef-21.0.3-osx-aarch64-b446.1.tar.gz archive:

  • jetbrainsRuntime("21.0.3b446.1", "jcef", "aarch64")

  • jetbrainsRuntime("21.0.3b446.1") (uses the default variant and architecture)

  • jetbrainsRuntimeExplicit("jbr_jcef-21.0.3-osx-aarch64-b446.1")

In Groovy, pass all three arguments to jetbrainsRuntime(), using null for defaults, for example jetbrainsRuntime("21.0.3b446.1", null, null).

See the JetBrains Runtime releases page for the list of available releases.

Foojay Toolchains Plugin

Since Gradle 8.4, it is possible to specify JetBrains as a known JVM vendor and instruct Gradle to search for JetBrains Runtime within available toolchains (see Toolchains for JVM projects).

Along with the Foojay Toolchains Plugin, Gradle can resolve JetBrains Runtime from the remote repository if the suitable JVM is not present:

Keep the automatic toolchain language version selected from the target IntelliJ Platform. The examples below set only the vendor; an explicit languageVersion must match the target IDE's Java requirement. Java 17 is appropriate only for targets that require it, such as 2023.3 and 2024.1; see Platform Versions.

build.gradle.kts

kotlin { jvmToolchain { vendor = JvmVendorSpec.JETBRAINS } }

settings.gradle.kts

plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "..." }

build.gradle

java { toolchain { vendor = JvmVendorSpec.JETBRAINS } }

settings.gradle

plugins { id 'org.gradle.toolchains.foojay-resolver-convention' version '...' }

The runtime resolver does not necessarily select the latest available JetBrains Runtime. It checks, in order, an explicit runtime dependency, the runtime bundled with the target IDE, a matching JVM toolchain, and finally the JVM running Gradle.

Project SDK

The Project SDK is not a direct override for the runtime used by IDE tasks. If Gradle runs on the Project SDK, that JVM is considered only as the final fallback after the runtime dependency, bundled runtime, and matching toolchain. Command-line and CI builds use the JVM running Gradle and do not receive the IDE's Project SDK setting.

30 November 2026