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

IntelliJ Platform Plugin SDK Help

Task Awares

Task Awares are interfaces that add IntelliJ Platform capabilities and conventions to Gradle tasks. They extend the IntelliJPlatformAware marker and can be used with standard Gradle task registration when the IntelliJ Platform Gradle Plugin is applied. Implementing an interface does not execute its associated tools; dependencies and conventions depend on the capability. In particular, sandbox consumers must be associated with a producer using applySandboxFrom().

IntelliJ Platform Gradle Plugin supports creating custom tasks which can use *Aware interfaces. Example:

import org.jetbrains.intellij.platform.gradle.tasks.aware.PluginAware import org.jetbrains.intellij.platform.gradle.tasks.aware.parse abstract class RetrievePluginNameTask : DefaultTask(), PluginAware { @TaskAction fun retrievePluginName() { pluginXml.parse { name }.orNull?.let(::println) } } tasks.register<RetrievePluginNameTask>("retrievePluginName")
import org.jetbrains.intellij.platform.gradle.tasks.aware.PluginAware import org.jetbrains.intellij.platform.gradle.tasks.aware.PluginAwareKt abstract class RetrievePluginNameTask extends DefaultTask implements PluginAware { @TaskAction void retrievePluginName() { if (pluginXml.present) { println(PluginAwareKt.parse(pluginXml.get()) { bean -> bean.name }) } } } tasks.register('retrievePluginName', RetrievePluginNameTask)

AutoReloadAware

Provides the possibility to auto-reload plugin when run in the IDE.

autoReload

Enables auto-reload of dynamic plugins. Dynamic plugin will be reloaded automatically when its content is modified.

This allows a much faster development cycle by avoiding a full restart of the development instance after code changes.

Type

Property<Boolean>

Default value

intellijPlatform.autoReload

ComposeHotReloadAware

Provides the path to the Java Agent file for the Compose Hot Reload agent required to enable hot reloading of Compose UIs.

composeHotReload

Enables auto-reload of Compose UIs after code changes for the task. The agent is not attached to split-mode frontend processes, even when this property is enabled.

Type

Property<Boolean>

Default value

false

Command-line option

--compose-hot-reload

composeHotReloadAgentConfiguration

Holds Compose Hot Reload agent JAR dependency configuration. When hot reload is enabled, this collection must resolve to exactly one agent JAR. The launch adds -XX:+AllowEnhancedClassRedefinition and -javaagent:<agent path>; the selected runtime must support enhanced class redefinition.

Type

ConfigurableFileCollection

CoroutinesJavaAgentAware

Provides the path to the Java Agent file for the Coroutines library required to enable coroutines debugging.

coroutinesJavaAgentFile

The path to the coroutines Java Agent file.

Type

RegularFileProperty

Default value

Resolved automatically and stored under intellijPlatform.caching.path

IntelliJPlatformAware

Marker for tasks requiring IntelliJ Platform Gradle Plugin preconfiguration. It declares no properties or methods. The capability interfaces on this page extend it directly or transitively; SandboxStructure alone does not.

IntelliJPlatformVersionAware

Provides a task with the possibility of accessing information about the IntelliJ Platform currently used in the project.

The intelliJPlatformConfiguration input property receives the task's IntelliJ Platform dependency files. Resolving them provides details such as ProductInfo and the IntelliJ Platform directory.

It is required to have a dependency on the IntelliJ Platform added to the project with helpers available in Dependencies Extension.

intelliJPlatformConfiguration

Holds the selected IntelliJ Platform dependency files.

It should not be directly accessed.

Type

ConfigurableFileCollection

intelliJPlatformPluginConfiguration

Holds the task's optional IntelliJ Platform plugin dependency files. It should not be directly accessed.

Type

ConfigurableFileCollection

intelliJPlatformTestRuntimeFixClasspathConfiguration

Holds the intellijPlatformTestRuntimeFixClasspath configuration with the custom IntelliJ Platform core dependency required for running tests. It is populated during TestableAware preconfiguration, not for every platform-aware task. It should not be directly accessed.

Type

ConfigurableFileCollection

platformPath

Provides a direct path to the IntelliJ Platform dependency artifact.

Access

Read-only

Type

Path

productInfo

Provides information about the IntelliJ Platform product.

The information is retrieved from the product-info.json file in the IntelliJ Platform directory.

Access

Read-only

Type

ProductInfo

validateIntelliJPlatformVersion()

Validates that the resolved IntelliJ Platform is supported by checking against the minimal supported IntelliJ Platform version.

Invokes ProductInfo.validateSupportedVersion().

Throws

IllegalArgumentException

JavaCompilerAware

Provides the dependency on Java Compiler required for the code instrumentation to properly configure Ant tasks provided by the IntelliJ Platform.

javaCompilerConfiguration

Holds the intellijPlatformJavaCompiler configuration with the Java Compiler dependency added.

Type

ConfigurableFileCollection

KotlinMetadataAware

Provides access to Kotlin-specific metadata from the Kotlin Gradle Plugin and the compileKotlin task. For Kotlin Gradle Plugin 1.8.0 and later, compilation options are read from compilerOptions; older versions use kotlinOptions. Optional metadata properties can be unset; their types do not have nullable type parameters.

kotlinPluginAvailable

Indicates that the Kotlin Gradle Plugin is loaded and available.

Type

Property<Boolean>

Default value

false

kotlinxCoroutinesLibraryPresent

Indicates whether the resolved composed-JAR dependency graph contains an org.jetbrains.kotlinx component whose module name starts with kotlinx-coroutines. This includes transitive dependencies.

Type

Property<Boolean>

Default value

Detected from the composed-JAR dependency graph

kotlinApiVersion

The apiVersion value of the Kotlin compilation options.

Type

Property<String>

Default value

The configured compilation option, if available

kotlinLanguageVersion

The languageVersion value of the Kotlin compilation options.

Type

Property<String>

Default value

The configured compilation option, if available

kotlinVersion

The version of Kotlin used in the project.

Type

Property<String>

Default value

kotlin.coreLibrariesVersion when the Kotlin Gradle Plugin is applied

kotlinJvmTarget

The jvmTarget value of the Kotlin compilation options.

Type

Property<String>

Default value

The configured compilation option, if available

kotlinStdlibDefaultDependency

kotlin.stdlib.default.dependency property value defined in the gradle.properties file.

Type

Property<Boolean>

Default value

The Gradle property value, if specified and the Kotlin Gradle Plugin is applied

ModuleAware

Provides information about whether the current task is executed in an IntelliJ Platform plugin module context.

module

Indicates if the current project represents an IntelliJ Platform plugin module.

Type

Property<Boolean>

Default value

PluginManager.isModule

Notes:

  • The IntelliJ Platform Gradle Plugin wires this property automatically for tasks implementing ModuleAware during task preconfiguration.

  • This value is typically not set manually; consume it in the task to branch logic.

PluginAware

Provides information about the currently built plugin.

It resolves and parses the final plugin.xml descriptor file, making its details easily accessible.

pluginXml

Holds the path to the patched plugin.xml file. The convention is unset for module projects, so consumers must handle an absent descriptor.

Type

RegularFileProperty

Default value

patchPluginXml.outputFile for non-module projects

parse {}

Kotlin extension functions provide access to the parsed PluginBean. The Path and RegularFile overloads return the block's result directly; the Provider<RegularFile> overload returns a mapped Provider<T>. Import org.jetbrains.intellij.platform.gradle.tasks.aware.parse in Kotlin. Groovy can call the generated static methods on PluginAwareKt with an explicit bean parameter.

For example, inside a task action with a present pluginXml:

val name = pluginXml.parse { name }.get() println("Plugin Name: $name")
import org.jetbrains.intellij.platform.gradle.tasks.aware.PluginAwareKt def name = PluginAwareKt.parse(pluginXml.get()) { bean -> bean.name } println("Plugin Name: $name")

PluginInstallationTargetAware

Provides the plugin installation-target property used by sandbox producers and split-mode launch tasks.

pluginInstallationTarget

Specifies in which part of the product the developed plugin should be installed when running in Split Mode. The values are BACKEND, FRONTEND, and BOTH. BOTH uses a shared plugin directory for the two processes rather than making two copies.

Sandbox producers normally obtain the convention from intellijPlatform.pluginInstallationTarget. The producers for runIdeBackend and runIdeFrontend instead default to BACKEND and FRONTEND, respectively. SandboxAware consumers inherit the convention from their producer through applySandboxFrom().

Type

Property<PluginInstallationTarget>

Default value

Task-specific convention; the effective fallback is BACKEND

PluginVerifierAware

Provides the path to the IntelliJ Plugin Verifier executable.

Supply the CLI through intellijPlatform.pluginVerifier() or intellijPlatform.pluginVerification.cliPath.

pluginVerifierExecutable

Path to the IntelliJ Plugin Verifier executable.

Type

RegularFileProperty

ProblemsAware

Provides access to Gradle's public org.gradle.api.problems.Problems API for structured issue reporting. This Gradle API is incubating.

problems

Provides the injected Gradle Problems API instance used by the task.

Type

Problems

ProductReleasesServiceAware

Provides the shared product-release listing service. Using this capability does not itself resolve an IDE distribution.

productReleasesService

The shared service supplied during task preconfiguration.

Type

Property<ProductReleasesService>

RunnableIdeAware

The interface which uses a set of various interfaces required for running a guest IDE. Inherits from:

Preconfiguration enables assertions and supplies IDE, sandbox, and required-plugin JVM arguments. For JavaExec tasks, it also sets the IDE main class, bootstrap classpath, and resolved Java launcher. Explicit maxHeapSize, minHeapSize, -Xmx, and -Xms settings override the corresponding distribution VM options. Split-mode launch profiles use frontend-specific bootstrap and VM options and only require the plugin on its selected installation side.

RuntimeAware

Provides access to the Java Runtime (i.e., JetBrains Runtime) resolved with JavaRuntimePathResolver.

jetbrainsRuntimeConfiguration

Holds the JetBrains Runtime dependency files. It should not be directly accessed.

Type

ConfigurableFileCollection

runtimeDirectory

Java Runtime parent directory.

Type

DirectoryProperty

runtimeArchitecture

An architecture of the Java Runtime currently used for running Gradle. Initialized from the os.arch system property.

Type

Property<String>

runtimeMetadata

Metadata obtained by running the Java executable in the resolved runtimeDirectory. This describes the selected runtime, not necessarily the JVM running Gradle.

Type

MapProperty<String, String>

runtimeLauncher

A custom JavaLauncher instance configured with the resolved runtimeDirectory.

Type

Property<JavaLauncher>

SandboxStructure

Defines common sandbox directories and flags used by tasks interacting with IDE sandboxes.

sandboxDirectory

The directory containing content read and produced by the running IDE. Sandbox producers conventionally use [intellijPlatform.sandboxContainer]/[project.name]/[productCode]-[productVersion].

Type

DirectoryProperty

sandboxConfigDirectory

A configuration directory located within the sandboxDirectory.

Type

DirectoryProperty

sandboxPluginsDirectory

A plugins directory located within the sandboxDirectory.

Type

DirectoryProperty

sandboxSystemDirectory

A system directory located within the sandboxDirectory.

Type

DirectoryProperty

sandboxLogDirectory

A log directory located within the sandboxDirectory.

Type

DirectoryProperty

testSandbox

Defines if the current sandbox is related to testing.

Type

Property<Boolean>

SandboxAware

Provides quick access to the sandbox container and specific directories located within it.

The path to the sandbox container is obtained using the intellijPlatform.sandboxContainer extension property and the type and version of the IntelliJ Platform applied to the project.

Sandbox Suffix

SandboxAware does not declare a sandboxSuffix property. Configure PrepareSandboxTask.sandboxSuffix on the producer instead.

sandboxDirectory

The directory containing content read and produced by the running IDE.

The directory name depends on the platform type and version currently used for running a task.

Type

DirectoryProperty

sandboxConfigDirectory

A configuration directory located within the sandboxDirectory.

Type

DirectoryProperty

sandboxPluginsDirectory

A plugins directory located within the sandboxDirectory.

Type

DirectoryProperty

sandboxSystemDirectory

A system directory located within the sandboxDirectory.

Type

DirectoryProperty

sandboxLogDirectory

A log directory located within the sandboxDirectory.

Type

DirectoryProperty

applySandboxFrom(TaskProvider)

The helper method used for applying sandbox configuration from the sandbox producer (such as prepareSandbox or prepareTestSandbox tasks) to sandbox consumers. It adds a dependency on the producer and conventions for the sandbox directories and testSandbox. For consumers implementing the split-mode capabilities, it also transfers the split-mode and installation-target conventions. Values are finalized on read, so configure the producer before the consumer reads them.

applyFrontendSandboxFrom(TaskProvider)

Calls applySandboxFrom(), then replaces the config, plugins, system, and log directory conventions with the producer's frontend directories. For the plugins directory, it uses the shared backend directory when the effective installation target is BOTH. This is used by split-mode frontend consumers such as runIdeFrontend.

SigningAware

Provides the path to the Marketplace ZIP Signer executable. Supply it through intellijPlatform.zipSigner() or intellijPlatform.signing.cliPath.

zipSignerExecutable

Path to the Marketplace ZIP Signer executable.

Type

RegularFileProperty

SplitModeAware

Supports checking a plugin in Split Mode, with the IDE backend and JetBrains Client frontend in separate processes. Use PluginInstallationTargetAware.pluginInstallationTarget to select where the developed plugin is installed.

Split Mode requires the IntelliJ Platform in the version 241.14473 or later.

splitMode

Enables Split Mode when running the IDE. SandboxAware consumers inherit this convention from their producer. The sandbox producers for runIdeBackend and runIdeFrontend enable Split Mode by default.

Type

Property<Boolean>

Default value

Task-specific; normally intellijPlatform.splitMode for sandbox producers

pluginInstallationTarget

Declared by PluginInstallationTargetAware, not SplitModeAware itself. See pluginInstallationTarget for its values and task-specific conventions.

splitModeTarget

Compatibility alias for pluginInstallationTarget. Its values use the deprecated SplitModeAware.SplitModeTarget enum, with BACKEND, FRONTEND, and BOTH entries. Use SplitModeAware.PluginInstallationTarget with the replacement property.

Type

Property<SplitModeAware.SplitModeTarget>

sandboxConfigFrontendDirectory

A frontend configuration directory located within the sandbox.

Type

DirectoryProperty

sandboxPluginsFrontendDirectory

A frontend plugins directory located within the sandbox.

Type

DirectoryProperty

sandboxSystemFrontendDirectory

A frontend system directory located within the sandbox.

Type

DirectoryProperty

sandboxLogFrontendDirectory

A frontend log directory located within the sandbox.

Type

DirectoryProperty

splitModeFrontendProperties

Path to a properties file used to configure the frontend process when the IDE is started in Split Mode.

Type

Provider<RegularFile>

Default value

[sandboxDirectory]/frontend.properties

splitModeFrontendJoinLinkFile

Path to a file storing the current split-mode frontend join link. It is written by runIdeBackend and consumed by runIdeFrontend when both are launched separately.

Type

Provider<RegularFile>

Default value

[sandboxDirectory]/split-mode-frontend.join.link

splitModeBackendPidFile

Path used to record the running backend's OS process identifier on a best-effort basis. The backend launch checks it for a live IDE process before starting and removes it when the managed process exits.

Type

Provider<RegularFile>

Default value

[sandboxDirectory]/split-mode-backend.pid

splitModeFrontendPidFile

Provides the frontend PID-file path. The current frontend launch implementation does not populate this file; it must not be used as evidence that the frontend is running.

Type

Provider<RegularFile>

Default value

[sandboxDirectory]/split-mode-frontend.pid

effectivePluginInstallationTarget

Resolves the effective plugin installation target. The pluginInstallationTarget property takes precedence over the deprecated splitModeTarget alias when available. If neither property has a value, the effective target is BACKEND.

Type

Provider<PluginInstallationTarget>

validateSplitModeSupport()

Validates that the resolved IntelliJ Platform supports Split Mode.

Throws

IllegalArgumentException

TestableAware

Provides the runtime, coroutines-agent, sandbox, and classpath capabilities used by test tasks. It inherits from RuntimeAware, CoroutinesJavaAgentAware, and SandboxAware, but not PluginAware or RunnableIdeAware. The ordinary test task obtains these capabilities through prepareTest.

intellijPlatformClasspathConfiguration

Holds the intellijPlatformClasspath configuration.

Type

ConfigurableFileCollection

intellijPlatformTestClasspathConfiguration

Holds the intellijPlatformTestClasspath configuration.

Type

ConfigurableFileCollection

intellijPlatformTestRuntimeClasspathConfiguration

Holds the intellijPlatformTestRuntimeClasspath configuration.

Type

ConfigurableFileCollection

pluginDirectory

Specifies the directory where the plugin artifacts are placed for testing.

Type

DirectoryProperty

Default value

[sandboxPluginsDirectory]/[intellijPlatform.projectName]

30 November 2026