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

IntelliJ Platform Plugin SDK Help

Tasks

The IntelliJ Platform Gradle Plugin introduces a set of tasks to handle activities of the plugin development for IntelliJ-based IDEs, such as building, verifying, testing, and publishing the plugin archive.

Task availability depends on the applied plugin. Some registered tasks are skipped by configuration flags, while custom testing tasks must be registered explicitly.

Tasks can depend on each other, implement Task Awares, and be configured independently. Caching is task-specific: interactive IDE runs, tests, and reports are untracked, while archive tasks and other utilities may disable build caching. However, most cases will be covered by the IntelliJ Platform Extension.

Task groups

The plugin organizes the tasks it registers into dedicated Gradle groups, visible in the Gradle tool window and in the gradle tasks output:

Intermediate and internal tasks, such as prepareSandbox or instrumentCode, are not assigned to any group and appear under Gradle's other tasks. Run ./gradlew tasks --all to include them in the task listing.

buildPlugin

Builds the plugin and prepares the ZIP archive for testing and deployment.

It takes the output of the prepareSandbox task containing the built project with all its modules and dependencies, and the output of jarSearchableOptions task.

The produced archive is stored in [buildDirectory]/distributions/archiveFile, where the name and location of archiveFile can be controlled with properties provided with the Zip base task. By default, archiveBaseName is set from intellijPlatform.projectName, not the display name in plugin.xml.

archiveFile

Specifies the archive file representing the output file produced by the task.

Type

RegularFileProperty

buildPluginVariants

Builds the fixed matrix of Linux, macOS, and Windows plugin distributions for x86_64 and arm64 architectures. The task runs its variant tasks only when intellijPlatform.nativeVariants.enabled is true. It does not change the base archive produced by buildPlugin.

Each variant archive is written to [buildDirectory]/distributions with the -<os>-<arch> classifier, for example, myPlugin-1.0.0-linux-arm64.zip. Its plugin descriptor version receives the same suffix and declares the corresponding com.intellij.modules.os.<os> and com.intellij.modules.arch.<arch> dependencies. Files configured for that target in intellijPlatform.nativeVariants are copied into the plugin distribution. The prepared variant JAR and target-specific files take precedence over duplicate paths from the base sandbox.

buildPluginVariants_<os>_<arch>

The following BuildPluginTask instances produce the individual archives:

Target

Task

Archive classifier

Linux x86_64

buildPluginVariants_linux_x86_64

linux-x86_64

Linux arm64

buildPluginVariants_linux_arm64

linux-arm64

macOS x86_64

buildPluginVariants_mac_x86_64

mac-x86_64

macOS arm64

buildPluginVariants_mac_arm64

mac-arm64

Windows x86_64

buildPluginVariants_windows_x86_64

windows-x86_64

Windows arm64

buildPluginVariants_windows_arm64

windows-arm64

All six tasks are registered, even when no native files are configured for a target, and are skipped while native variants are disabled.

archiveFiles

The variant ZIP archives produced by the six target tasks. The collection declares all six output paths even when native variants are disabled; a path in the collection does not establish that the archive has been built.

Type

ConfigurableFileCollection

buildSearchableOptions

Builds the index of UI components (searchable options) for the plugin. This task runs a headless IDE instance to collect all the available options provided by the plugin's settings.

The task is skipped automatically when the main plugin descriptor and plugin module descriptors don't declare Configurable extension points. Use the forceBuildSearchableOptions Gradle property to force execution even when descriptor analysis would skip it. Without forcing, execution also requires intellijPlatform.buildSearchableOptions to be enabled. The force property takes precedence over both descriptor detection and that extension flag. The same condition controls prepareJarSearchableOptions and jarSearchableOptions.

In the case of running the task for the plugin that has intellijPlatform.pluginConfiguration.productDescriptor defined, a warning will be logged regarding potential issues with running headless IDE for paid plugins. It is possible to mute this warning with the paidPluginSearchableOptionsWarning Gradle property.

outputDirectory

Specifies the directory where searchable options will be generated.

Type

DirectoryProperty

Default value

[buildDirectory]/tmp/buildSearchableOptions

showPaidPluginWarning

Emits a warning when the task is executed by a paid plugin. Can be disabled with the paidPluginSearchableOptionsWarning Gradle property.

Type

Property<Boolean>

Default value

paidPluginSearchableOptionsWarning && productDescriptor is defined

pluginXmlService

Shared descriptor-parsing service supplied by the plugin. This is task infrastructure, not a user configuration option.

Type

Property<PluginXmlService>

cleanSandbox

Cleans the sandbox directory created by prepareSandbox for the current project. This removes all suffixed sandboxes under the selected product/version directory, but not the entire sandbox container or other product/version directories.

composedJar

Composes a final JAR by combining the output of base jar or instrumentedJar tasks, depending on if code instrumentation is enabled with intellijPlatform.instrumentCode.

The final JAR is also combined with plugin modules marked using the pluginComposedModule dependencies helper. For module projects, the archive base name combines the root project name and the dot-separated project path, and the archive version is empty. For distribution projects, the base name is project.name and the version comes from intellijPlatform.pluginConfiguration.version.

archiveFile

Specifies the archive file representing the output file produced by the task.

Type

RegularFileProperty

dumpBundledModules

Writes the selected IDE's bundled modules as sorted, distinct, tab-separated ID/name pairs, one per line. In 2.20.1, this ungrouped Plugin DevKit utility always runs and only rewrites the output when its content changes. In development builds after 2.20.1, the task is cacheable and can be UP-TO-DATE when the IDE layout fingerprint and output are unchanged. It uses the same cached IDE layout index as printBundledModules.

outputFile

Type

RegularFileProperty

Default value

[buildDirectory]/tmp/dumpBundledModules/bundled-modules.txt

ideLayoutIndexCacheDirectory

The DirectoryProperty for cached layout-index snapshots, conventionally shared with dependency resolution and the corresponding print task.

dumpBundledPlugins

Writes sorted, distinct, tab-separated plugin ID/name pairs, one per line, using the same index as printBundledPlugins. In 2.20.1, this ungrouped utility always runs and only rewrites changed content. In development builds after 2.20.1, it is cacheable and can be UP-TO-DATE when the IDE layout fingerprint and output are unchanged.

outputFile

Type

RegularFileProperty

Default value

[buildDirectory]/tmp/dumpBundledPlugins/bundled-plugins.txt

ideLayoutIndexCacheDirectory

The DirectoryProperty for cached layout-index snapshots shared with dependency resolution and the corresponding print task.

dumpProductsReleases

Writes sorted, distinct, tab-separated product code, version, and channel values, one release per line. It includes all product types and channels from the minimum supported platform build, rather than using the current plugin's compatibility bounds or selecting only the latest releases. This ungrouped, untracked utility only rewrites changed content. In development builds after 2.20.1, remote release listings used as inputs are reused for up to six hours; --refresh-dependencies revalidates them sooner. This freshness window applies to remote release-listing inputs, not to task execution or every release lookup.

outputFile

Type

RegularFileProperty

Default value

[buildDirectory]/tmp/dumpProductsReleases/product-releases.txt

generateManifest

Generates the MANIFEST.MF file with all relevant information about the project configuration.

The manifest contains Created-By, Version, Build-JVM, Build-OS, Build-Plugin, Build-Plugin-Version, Platform-Type, Platform-Version, Platform-Build, Kotlin-Available, Kotlin-Stdlib-Bundled, and Kotlin-Version entries.

To apply the produced manifest file to an additional Jar task, call JarCompanion.applyPluginManifest().

This file is bundled into the output JAR files produced by composedJar, instrumentedJar, and Jar tasks.

pluginVersion

The IntelliJ Platform Gradle Plugin version.

Type

Property<String>

Default value

initializeIntelliJPlatformPlugin.pluginVersion

gradleVersion

The version of currently used Gradle.

Type

Property<String>

Default value

The current Gradle version

platformType

The product code of the current IntelliJ Platform, for example, IC or IU.

Type

Property<String>

Default value

The selected IntelliJ Platform product code

platformVersion

The marketing version of the current IntelliJ Platform, for example, 2025.3.

Type

Property<String>

Default value

The selected IntelliJ Platform product version

platformBuild

The build number of the current IntelliJ Platform, for example, 253.12345.67.

Type

Property<String>

Default value

The selected IntelliJ Platform build number

version

Plugin version.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.version

generatedManifest

Location of the generated MANIFEST.MF file.

Type

RegularFileProperty

Default value

[buildDirectory]/tmp/generateManifest/MANIFEST.MF

generateLexer

Generates a lexer from a .flex definition file using JFlex.

sourceFile

The source Flex file used to generate the lexer.

Type

RegularFileProperty

targetRootOutputDir

The root output directory for the generated lexer. The lexer file is created under a subdirectory matching packageName, unless packageName is empty. When the legacy targetOutputDir is not used and pathToClass is not set, the task exclusively owns this directory, declares the entire directory as its output, and can be passed directly to sourceSets.main.java.srcDir(tasks.generateLexer) so Gradle infers the task dependency. Set pathToClass when this directory is shared with other generators.

Type

DirectoryProperty

Default value

[buildDirectory]/generated/sources/grammarkit-lexer/java/main

pathToClass

The generated lexer class location relative to targetRootOutputDir, or relative to the legacy targetOutputDir when that property is used. Setting this property switches the task to shared-root mode: only this file is declared as an output and removed during cleanup, leaving other files under the root untouched.

The value must include the generated filename and any package directories, for example, com/example/MyLexer.java.

Type

Property<String>

Required

no

packageName

The Java package where the lexer file is generated. By default, the task tries to detect the package declaration from sourceFile. Set this property to an empty string ("") to generate the lexer in the root output directory.

Type

Property<String>

Default value

Detected from sourceFile, or empty string when no package declaration is found

targetOutputDir

The legacy output directory for the generated lexer. When this property is set, it takes precedence over targetRootOutputDir, the Java file is created directly below this directory, and packageName is ignored.

Stale files in this directory are not deleted unless purgeOldFiles is explicitly set to true.

Type

DirectoryProperty

skeleton

Optional path to the skeleton file passed with the --skel option.

Type

RegularFileProperty

Default value

Not set; no --skel option is passed unless configured

purgeOldFiles

Purges previously generated lexer output before generating the lexer. When cleanup is enabled and pathToClass is not set, the task removes the entire active output directory: targetOutputDir when present, otherwise targetRootOutputDir. When pathToClass is set, only that generated file in the active output directory is removed so the root can be shared safely. When the deprecated targetOutputDir is used, old files are not purged unless this property is explicitly set to true. Set this property to false to disable cleanup.

Type

Property<Boolean>

targetFile(...)

Legacy helper methods returning the expected lexer file below targetOutputDir. Use pathToClass instead. With targetRootOutputDir, include the package directories in pathToClass. With the legacy targetOutputDir, pathToClass is relative to that directory and packageName is ignored.

generateParser

Generates parser and PSI files from a .bnf definition file using GrammarKit.

sourceFile

The source BNF file used to generate the parser.

Type

RegularFileProperty

targetRootOutputDir

The root output directory for generated parser and PSI files. When pathToParser and pathToPsiRoot are not set, the task exclusively owns this directory, declares the entire directory as its output, and can be passed directly to sourceSets.main.java.srcDir(tasks.generateParser) so Gradle infers the task dependency. Set both path properties when this directory is shared with other generators.

Type

DirectoryProperty

Default value

[buildDirectory]/generated/sources/grammarkit-parser/java/main

pathToParser

The generated parser class location relative to targetRootOutputDir. Setting this property with pathToPsiRoot switches the task to shared-root mode, in which only the configured parser file and PSI directory are declared as outputs and removed during cleanup. If this property is set, pathToPsiRoot must also be set.

Type

Property<String>

pathToPsiRoot

The generated PSI root location relative to targetRootOutputDir. Setting this property with pathToParser switches the task to shared-root mode, in which only the configured parser file and PSI directory are declared as outputs and removed during cleanup. If this property is set, pathToParser must also be set.

Type

Property<String>

parserFile()

Returns the parser file below targetRootOutputDir computed from pathToParser.

psiDir()

Returns the PSI directory below targetRootOutputDir computed from pathToPsiRoot.

purgeOldFiles

Purges previously generated parser and PSI files before generation. With no explicit paths, the task owns and removes the entire targetRootOutputDir. When both pathToParser and pathToPsiRoot are set, only the configured parser file and PSI directory are removed so the root can be shared safely. Set this property to false to disable cleanup.

Type

Property<Boolean>

generateSplitModeRunConfigurations

Generates shared IntelliJ IDEA run configurations for split-mode frontend and backend runs, plus a compound run configuration that starts both. The generated Gradle run configurations invoke runIdeBackend and runIdeFrontend with --purge-old-log-directories. The compound configuration starts those two tasks, not the runIdeSplitMode aggregate task. Execution rewrites the three configured output files.

This utility task is intentionally ungrouped, so it can be invoked directly without adding another entry to the standard Gradle task listing.

projectPath

The Gradle project path used to qualify generated task paths.

Type

Property<String>

Default value

Current project path

backendConfigurationFile

The generated backend run configuration file.

Type

RegularFileProperty

Default value

[projectDirectory]/.run/runIdeBackend.run.xml

frontendConfigurationFile

The generated frontend run configuration file.

Type

RegularFileProperty

Default value

[projectDirectory]/.run/runIdeFrontend.run.xml

compoundConfigurationFile

The generated compound run configuration file.

Type

RegularFileProperty

Default value

[projectDirectory]/.run/runIdeSplitMode.run.xml

initializeIntelliJPlatformPlugin

Checks whether a newer IntelliJ Platform Gradle Plugin version is available. Task preconfiguration adds this dependency to aware tasks in non-module projects; it is not a dependency of every Gradle task or the metadata-only JSON reports. The check is skipped for module projects, in offline mode, when disabled, or when the lock file already records today's date. It warns about an available update but does not update the build configuration.

The self-update check can be disabled via selfUpdateCheck Gradle property.

offline

Determines if the operation is running in offline mode and depends on Gradle start parameters.

Type

Property<Boolean>

Default value

StartParameter.isOffline

See also:

selfUpdateCheck

Represents the property for checking if self-update checks are enabled.

Type

Property<Boolean>

Default value

selfUpdateCheck

selfUpdateLock

Records the date of the last successful version check, limiting checks to once per day.

Type

RegularFileProperty

Default value

[intellijPlatform.caching.path]/self-update.lock

pluginVersion

Represents the current version of the plugin.

Type

Property<String>

latestPluginVersion

Represents the latest version of the plugin.

Type

Property<String>

module

Defines that the current project has only the Module plugin applied but no Platform plugin.

Type

Property<Boolean>

instrumentCode

Executes the code instrumentation using the Ant tasks provided by the used IntelliJ Platform dependency. The code instrumentation scans the compiled Java and Kotlin classes for JetBrains Annotations usages to replace them with their relevant functionalities. It also compiles GUI Designer forms and writes instrumented copies without modifying the original class directories.

The task is controlled with the intellijPlatform.instrumentCode extension property, enabled by default. To properly run the instrumentation, a Java Compiler dependency must be available. This is applied by default by the plugin; the former instrumentationTools() helper was removed and calling it is no longer necessary. The dependency can still be configured manually via javaCompiler() if needed. This dependency is resolved via the intellijDependencies() repository, which can be added separately or using the defaultRepositories() helper.

See also:

sourceSetCompileClasspath

Specifies the compile classpath of the project's source set.

Type

ConfigurableFileCollection

Default value

The source set's compileClasspath

classesDirs

Specifies the list of directories with compiled classes.

Type

ConfigurableFileCollection

Default value

classesDirs of the project's source sets.

formsDirs

Specifies the list of directories with GUI Designer form files.

Type

ConfigurableFileCollection

Default value:

.form files of the project's source sets.

sourceDirs

Specifies the location of the source code.

Type

ConfigurableFileCollection

Default value

The source set's allJava.srcDirs

instrumentationLogs

Enables INFO logging when running Ant tasks.

Type

Property<Boolean>

Default value:

true when Gradle's log level is INFO; otherwise false

outputDirectory

Specifies the output directory for instrumented classes.

Type

DirectoryProperty

Default value

[buildDirectory]/instrumented/[taskName]

instrumentTestCode

The InstrumentCodeTask instance for the test source set. It depends on testClasses and writes to [buildDirectory]/instrumented/instrumentTestCode. The ordinary test and custom testIde tasks use its output before the original test classes. Instrumentation is controlled by the same intellijPlatform.instrumentCode flag. Registration also creates corresponding instrument<SourceSet>Code tasks for the other source sets present at registration time.

instrumentedJar

Creates a copy of the current module's jar task output with instrumented classes added. The archive classifier defaults to instrumented, and instrumented classes take precedence over base JAR entries.

JSON Reporting Tasks

The following non-interactive tasks write project and SDK observations for people, CI, and command-line agents.

They are also available in module projects. Parse the JSON file, not Gradle's console output.

Task

Default file under [buildDirectory]/reports/intellij-platform

Observation cost

intellijPlatformInfo

info.json

Metadata; optional IDE/plugin resolution

intellijPlatformProjectGraph

projectgraph.json

Metadata

intellijPlatformDistribution

distribution.json

Metadata; optional existing-archive inspection

intellijPlatformDependencyGraph

dependencygraph.json

Metadata; optional dependency resolution

intellijPlatformTestMatrix

testmatrix.json

Metadata

intellijPlatformCompatibilityMatrix

compatibilitymatrix.json

Metadata

intellijPlatformDoctor

doctor.json

Selected IDE and patched descriptor

intellijPlatformDiscover

discover.json

Selected IDE for catalogs; release listings for releases

intellijPlatformSdk

sdk.json

Selected IDE and main compilation classpath

These tasks do not compile sources, prepare sandboxes, run tests or IDEs, sign, publish, or edit project sources. Doctor can run patchPluginXml, which writes under build. Resolution can download metadata or artifacts and write caches; Gradle's --offline is respected. Metadata-only modes deliberately leave lazy dependency and compiler settings unresolved rather than acquiring an IDE or JDK to fill missing fields.

All reports use the version-1 envelope defined by AgentReportTask:

{ "schemaVersion": 1, "reportType": "info", "gradlePluginVersion": "…", "projectPath": ":plugin", "status": "complete", "data": {}, "issues": [], "unavailable": [] }

Reports are UTF-8 JSON with deterministic ordering, explicit nulls, and no timestamps. They are written atomically, always execute, are not restored from the build cache, and support the configuration cache. Consumers must ignore unknown additive fields within a schema version.

status distinguishes complete, partial, and failed observations. Each unavailable entry identifies an observation, a state (notRequested, notResolved, or unavailable), and a reason. Intentionally unrequested resolution is not an operational failure. Findings in issues have stable IDs, severity, a message, suppression state, and optional settings, fixes, documentation, and diagnostic evidence. Configured targets and existing report directories are never evidence that verification succeeded.

Handled operational failures can write a report before failing Gradle; always check the Gradle result as well as the JSON. A report is not guaranteed after invalid options, build-script or plugin-application failures, uncaught failures, or an unwritable destination. For automation, use an invocation-specific --output=<path> that does not already exist, and consume it only after confirming that the invocation wrote it. An existing file at a reused output path can be left over from an earlier invocation, even when the current build fails. See Diagnose Gradle configuration for a diagnosis workflow. Reports exclude arbitrary environment variables, credentials, publishing tokens, and signing configuration, but paths can identify the local machine and should be reviewed before sharing. See CLI Reports for the full data contract.

Common Properties

Property

Type

Convention or purpose

outputFile

RegularFileProperty

The report path in the table above; --output=<path> overrides it, relative to the current project

projectPath

Property<String>

Current Gradle project path

pluginVersion

Property<String>

Current IntelliJ Platform Gradle Plugin version

All nine tasks extend AgentReportTask. The Info, Project Graph, Distribution, Dependency Graph, Test Matrix, and Compatibility Matrix types also expose a snapshot: Property<String> containing plugin-supplied serialized configuration metadata. Snapshots and other infrastructure properties below are populated by the plugin and should not be edited as report inputs.

Replace <invocation-id> with a unique value for each invocation:

./gradlew :plugin:intellijPlatformInfo --output="build/reports/<invocation-id>/project context.json"

intellijPlatformCompatibilityMatrix

Reports raw descriptor bounds, configured development/test/verifier targets, mapping-based Java/Kotlin requirements, and native-variant restrictions. It does not resolve IDEs, run Plugin Verifier, consume verification results, or infer success from report directories. Raw bounds can differ from effective DSL and patch-task overrides. Targets remain untested and verifiedSuccess is empty. Only safely observable declarations are included; local, lazy, and recommended verifier selections can remain unresolved.

Uses the common report properties, including the plugin-supplied snapshot.

intellijPlatformDependencyGraph

Separates declared dependencies, constraints, exclusions, and configuration roles from resolved components and relationships. By default, it does not realize deferred declarations or resolve configurations. With --resolve, it queries Gradle's resolution result for resolvable configurations, including selected variants, selection reasons, and unresolved edges. This can fetch metadata; resolution callbacks may perform additional work, but the report does not download artifact files merely to describe the graph.

Property

Type

Default / command-line option

resolve

Property<Boolean>

false; --resolve

configurationName

Property<String>

Empty selects all configurations; --configuration=<exact-name>

dependencyFilter

Property<String>

Empty selects all dependencies; --dependency=<case-sensitive-substring>

Dependency filtering changes presentation, not resolution or conflict selection. Matching edges, their endpoints, and the graph root are retained, but not necessarily every ancestor path. Filtering cannot hide a resolution failure. An unknown configuration, an explicitly selected non-resolvable configuration with --resolve, or failed resolution writes a failed report before failing the task.

./gradlew :plugin:intellijPlatformDependencyGraph --resolve --configuration=runtimeClasspath

intellijPlatformDiscover

Returns all matching entries in deterministic order; consumers can slice the result locally. Plugin/module discovery resolves the selected IDE and exposes IDs, names, aliases, archive paths, original files, and dependency references. Duplicate IDs or aliases remain distinct entries. References are report-local, and catalog membership does not establish compatibility.

Property

Type

Default / command-line option

kind

Property<String>

plugins; --kind=plugins, --kind=modules, or --kind=releases

query

Property<String>

Empty; --query=<text> performs a case-insensitive substring match

sinceBuild

Property<String>

Unset; --since-build=<build-or-version>

untilBuild

Property<String>

Unset; --until-build=<build-or-version> supports a trailing wildcard

Release discovery uses the release-filter types and channels properties, defaulting to all product codes and channels. The type(String) and channel(String) option methods accept comma-separated values through --type=IU,PS and --channel=RELEASE,EAP. They reject unsupported product codes or channels. Queries match catalog IDs/names/aliases or release notation, version, build, and channel.

--kind=releases uses cached product listings and does not resolve an IDE. An offline cache miss or any other empty release result produces an empty, partial report without failing the task; an empty plugin/module match is a successful empty catalog. Requested discovery failures write a failed report before failing Gradle.

Infrastructure properties are platformFiles: ConfigurableFileCollection (empty for release discovery) and ideLayoutIndexCacheDirectory: DirectoryProperty (shared layout-index cache).

./gradlew :plugin:intellijPlatformDiscover --kind=releases --type=IU --channel=RELEASE --since-build=251 --until-build=251.*

intellijPlatformDistribution

Separates declared packaging configuration, descriptor relationships, planned paths, and native overlays from observed existing files. It does not resolve runtime dependencies, patch descriptors, compile, or build archives. An existing patched descriptor can be read, but its freshness is not established. Lazy providers, unresolved files, and arbitrary user copy specifications are not treated as an effective complete distribution plan.

Property

Type

Default / command-line option

inspect

Property<Boolean>

false; --inspect inspects the existing configured buildPlugin ZIP

archivePath

Property<String>

Unset; --archive=<existing-zip> selects a project-relative or absolute path and implies inspection

Inspection does not add a dependency on buildPlugin. It inventories ZIP/JAR entries and descriptors without extracting them, and compares only observable planned paths, not bytes or archive freshness. Inspection is bounded by entry, descriptor, XML, and expanded nested-JAR size limits; it is not complete archive validation. Missing, malformed, unsafe, or oversized requested archives produce a failed report and task failure. A successful inspection can still leave the report partial.

./gradlew :plugin:intellijPlatformDistribution --archive="build/distributions/plugin.zip" --offline

intellijPlatformDoctor

Resolves the selected IDE and reads the effective patched descriptor without compiling. It shares the configuration-rule evaluator with verifyPluginProjectConfiguration, but explicitly leaves the runtime-vendor check notRequested to avoid acquiring a runtime. Module projects skip descriptor checks.

Findings include stable IDs, affected settings, suggested fixes, observed/expected values, evidence, provenance, applicable IDE descriptions, and a qualified rerun command where available. Locations identify known files or effective settings, not invented source lines. Diagnostic category (warning, incompatibility, or blockingConfigurationError) is distinct from severity.

Property

Type

Convention / command-line option

failOn

Property<String>

none; --fail-on=none, --fail-on=warning, or --fail-on=error

mutedMessages

ListProperty<String>

verifyPluginProjectConfigurationMutedMessages Gradle property

sourceCompatibility

Property<String>

compileJava.options.release, falling back to compileJava.sourceCompatibility

targetCompatibility

Property<String>

compileJava.options.release, falling back to compileJava.targetCompatibility

cacheIgnored

Property<Boolean>

Whether the existing default root cache is mentioned in the existing root .gitignore; unset when inapplicable

Findings do not fail the task by default. The requested failOn threshold is applied to unsuppressed findings after writing the report. Muted findings remain in JSON with suppressed: true; categories do not change this policy. No fixes are applied automatically.

intellijPlatformInfo

Reports project/plugin identity, module status, directly observable requested IDE identity, Java/Kotlin settings, allowlisted switches, dependency declarations, and project-qualified commands. Compiler settings distinguish declared constants from unresolved effective values, and raw selectors such as latest remain selectors rather than triggering release lookup. The capabilities entries describe task prerequisites and potential execution costs, including custom tests and native-variant builds; they do not prove execution.

resolve

Enables resolution of IDE and plugin artifacts, adding resolvedIde and resolvedPlugins to the report. This can download artifacts and respects --offline. Failed requested resolution writes a failed report and then fails the task.

Type

Property<Boolean>

Default value

false

Command-line option

--resolve

The plugin supplies platformFiles and pluginFiles as ConfigurableFileCollection infrastructure properties, empty unless resolution is requested.

intellijPlatformProjectGraph

Reports projects, build files, applied plugin classes, source/resource roots, and project-dependency edges without resolving dependencies or compiling. Configuration names distinguish ordinary libraries, plugin modules, and composed modules. Project and source-set roles are inferred conventions, not authoritative declarations. Included builds are identified where observable, but their project models and external plugin origins are not traversed.

Uses the common report properties, including the plugin-supplied snapshot. Use the qualified root task path to avoid Gradle's unqualified multi-project task selection:

./gradlew :intellijPlatformProjectGraph --offline

intellijPlatformSdk

Resolves the selected IDE and effective main compilation classpath without compiling sources. The report includes the absolute SDK root and target identity, bundled plugin/module owners, SDK-relative archives, and classpath entries classified as sdk, project, or external. SDK classpath entries reference their owners using report-local refs. Sources are existing archives found at src.zip, sources.zip, and lib/src, not inferred from downloadSources and not downloaded by this task.

owner

Filters displayed owners by exact ID or alias, without filtering classpath entries or changing their full-catalog ownership refs. Refs can therefore refer to owners omitted from a filtered report; obtain an unfiltered report to dereference them all. An unknown owner produces an empty owner list.

Type

Property<String>

Command-line option

--owner=<id-or-alias>

Infrastructure properties are compileClasspath: ListProperty<String> (observed file paths), rootProjectDirectory: DirectoryProperty, and ideLayoutIndexCacheDirectory: DirectoryProperty (shared layout-index cache). An unresolved compilation classpath writes a partial report before failing the task. Missing local source archives make the report partial without themselves failing it.

intellijPlatformTestMatrix

Lists configured tasks, frameworks, conventional source-set associations, prerequisites, result locations, and qualified execution/filter commands where observable. Ordinary JVM, IDE, Starter UI, and performance workflows are distinguished along with their potential execution costs. It does not run tests, prepare sandboxes, resolve test classpaths or runtimes, or infer results from existing directories. Source-set associations and output paths can remain unavailable, and all execution statuses remain untested.

Uses the common report properties, including the plugin-supplied snapshot.

jar

The standard Gradle Jar task is configured with archiveBaseName from intellijPlatform.projectName and the classifier base. It depends on generateManifest, includes the generated manifest, and excludes classpath.index files. This base archive is an input to instrumentedJar and composedJar, not the final plugin distribution.

Sources: JarCompanion

jarSearchableOptions

Creates a JAR file with searchable options to be distributed with the plugin. The archive classifier defaults to searchableOptions. The task and its outgoing artifact are enabled by the same condition as buildSearchableOptions.

destinationDirectory

Specifies the directory where the JAR file will be created.

Type

DirectoryProperty

Default value

[buildDirectory]/libs

noSearchableOptionsWarning

Specifies if a warning is emitted when no searchable options are found. The check recognizes both *.searchableOptions.xml and *-searchableOptions.json files in the JAR inputs. Can be disabled with noSearchableOptionsWarning Gradle property.

Type

Property<Boolean>

Default value

noSearchableOptionsWarning

patchPluginXml

Patches plugin.xml file with values provided with the intelliJPlatform.pluginConfiguration extension. Only configured values replace descriptor content, except an absent untilBuild, which removes the until-build attribute. Missing elements are created when a configured value needs them. Replacing a different, non-empty element or attribute value emits a warning. Blank or unspecified project versions do not overwrite the descriptor's version. The patched descriptor is included by processResources under META-INF.

inputFile

Specifies the input plugin.xml file. The convention selects the first existing META-INF/plugin.xml in the main source set's resource directories, which can differ from the standard location below. If no input file is configured or found by the convention, the task is skipped.

Type

RegularFileProperty

Default value

src/main/resources/META-INF/plugin.xml

outputFile

Specifies the patched output plugin.xml file, which by default is written to a temporary task-specific directory within the build directory.

Type

RegularFileProperty

Default value

[buildDirectory]/tmp/patchPluginXml/plugin.xml

pluginId

Specifies a unique plugin identifier, which should be a fully qualified name similar to Java packages and must not collide with the ID of existing plugins. The ID is a technical value used to identify the plugin in the IDE and JetBrains Marketplace. The provided value will be assigned to the <id> element.

Please use characters, numbers, and ./-/_ symbols only and keep it reasonably short.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.id

pluginName

Specifies the user-visible plugin name. It should use Title Case. The provided value will be assigned to the <name> element.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.name

pluginVersion

Specifies the plugin version displayed in the Plugins settings dialog and on the JetBrains Marketplace plugin page. Plugins uploaded to JetBrains Marketplace must follow semantic versioning. The provided value will be assigned to the <version> element.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.version

pluginDescription

Specifies the plugin description displayed in the Plugins settings dialog and on the JetBrains Marketplace plugin page. Simple HTML elements, like text formatting, paragraphs, lists, etc., are allowed. The description content is automatically wrapped in <![CDATA[... ]]>. The provided value will be assigned to the <description> element.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.description

changeNotes

A short summary of new features, bugfixes, and changes provided in this plugin version. Change notes are displayed on the JetBrains Marketplace plugin page and in the Plugins settings dialog. Simple HTML elements, like text formatting, paragraphs, lists, etc., are allowed.

The change notes content is automatically wrapped in <![CDATA[... ]]>. The provided value will be assigned to the <change-notes> element.

To maintain and generate an up-to-date changelog, try using Gradle Changelog Plugin.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.changeNotes

productDescriptorCode

The plugin product code used in the JetBrains Sales System. The code must be agreed with JetBrains in advance and follow the requirements. The provided value will be assigned to the <product-descriptor code=""> element attribute.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.productDescriptor.code

productDescriptorReleaseDate

Date of the major version release in the YYYYMMDD format. The provided value will be assigned to the <product-descriptor release-date=""> element attribute.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.productDescriptor.releaseDate

productDescriptorReleaseVersion

Specifies the major version of the plugin in a special number format used for paid plugins on JetBrains Marketplace. The provided value will be assigned to the <product-descriptor release-version=""> element attribute.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.productDescriptor.releaseVersion

productDescriptorOptional

Specifies the boolean value determining whether the plugin is a Freemium plugin. The provided value will be assigned to the <product-descriptor optional=""> element attribute.

Type

Property<Boolean>

Default value

intellijPlatform.pluginConfiguration.productDescriptor.optional

productDescriptorEap

Specifies the boolean value determining whether the plugin is an EAP release. The provided value will be assigned to the <product-descriptor eap=""> element attribute.

Type

Property<Boolean>

Default value

intellijPlatform.pluginConfiguration.productDescriptor.eap

sinceBuild

Specifies the lowest IDE version compatible with the plugin. The provided value will be assigned to the <idea-version since-build="..."/> element attribute.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.ideaVersion.sinceBuild

untilBuild

The highest IDE version compatible with the plugin. The until-build attribute can be unset by setting provider { null } as a value. However, if until-build is undefined, compatibility with all the IDEs since the version specified by the since-build is assumed, which can cause incompatibility errors in future builds.

The provided value will be assigned to the <idea-version until-build="..."/> element attribute.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.ideaVersion.untilBuild

vendorName

Specifies the vendor name or organization ID (if created) in the Plugins settings dialog and on the JetBrains Marketplace plugin page. The provided value will be assigned to the <vendor> element.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.vendor.name

vendorEmail

Specifies the vendor's email address. The provided value will be assigned to the <vendor email=""> element attribute.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.vendor.email

vendorUrl

Specifies the link to the vendor's homepage. The provided value will be assigned to the <vendor url=""> element attribute.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.vendor.url

prepareJarSearchableOptions

Collects the content produced with buildSearchableOptions for the jarSearchableOptions. The task filters searchable option files using the main plugin descriptor when it exists and any searchable option descriptors found in plugin module projects. This also supports composed multi-module builds where the root project doesn't define its own plugin.xml. XML files ending in .searchableOptions.xml are retained only when the corresponding JAR exists in libContainer, and are placed under search. JSON files ending in -searchableOptions.json are matched against plugin IDs and content-module names, and placed at the JAR root. The task uses the same enablement condition as buildSearchableOptions.

inputDirectory

Specifies the directory where the prepared searchable options are read from.

Type

DirectoryProperty

Default value

buildSearchableOptions.outputDirectory

outputDirectory

Specifies the directory where the filtered content is placed.

Type

DirectoryProperty

Default value

[buildDirectory]/tmp/prepareJarSearchableOptions

libContainer

Specifies the lib directory within the current sandbox.

Type

DirectoryProperty

Default value

[prepareSandbox.pluginDirectory]/lib

searchableOptionsDescriptors

Plugin descriptor files used to match generated searchable options to plugin IDs and module names. The default value includes descriptors from the main source set and from module projects attached through plugin module dependencies.

Type

ConfigurableFileCollection

pluginXmlService

Shared descriptor-parsing service supplied by the plugin, not a user configuration option.

Type

Property<PluginXmlService>

preparePluginVariant_<os>_<arch>

The six preparePluginVariant_<os>_<arch> tasks create the plugin JARs consumed by the corresponding buildPluginVariants_<os>_<arch> tasks. They are registered for the same Linux, macOS, and Windows x86_64/arm64 matrix and run only when intellijPlatform.nativeVariants.enabled is true.

Before creating a variant JAR, each task validates the effective patchPluginXml.sinceBuild value. The value must resolve to 261 (IntelliJ Platform 2026.1) or later because the injected operating-system and architecture module dependencies are unavailable in earlier platform versions.

Each task copies the shared composedJar, appends -<os>-<arch> to the version in META-INF/plugin.xml, and adds the matching operating-system and architecture module dependencies. The resulting JAR is stored under [buildDirectory]/intermediates/pluginVariants/[os]-[arch]. The task clears its output directory before creating the variant; do not share that directory with other outputs.

inputJar

The shared composed plugin JAR used as the source of the variant.

Type

RegularFileProperty

Default value

composedJar.archiveFile

pluginVersion

The plugin version written to the variant's META-INF/plugin.xml file.

Type

Property<String>

Default value

intellijPlatform.pluginConfiguration.version with the -<os>-<arch> suffix

operatingSystem

The target operating-system identifier used for the com.intellij.modules.os.<os> dependency. The version written to the descriptor is controlled independently by pluginVersion.

Type

Property<String>

Default value

linux, mac, or windows, configured from the fixed variant for each task registered by the plugin

architecture

The target architecture identifier used for the com.intellij.modules.arch.<arch> dependency. The version written to the descriptor is controlled independently by pluginVersion.

Type

Property<String>

Default value

x86_64 or arm64, configured from the fixed variant for each task registered by the plugin

outputDirectory

The directory containing the prepared variant JAR.

Type

DirectoryProperty

Default value

[buildDirectory]/intermediates/pluginVariants/[os]-[arch]

prepareSandbox

Prepares a sandbox environment with the plugin and its dependencies installed. The sandbox isolates IDE and test instances used by runIde, prepareTest, and testIdePerformance. The sandbox directory is created within the container configurable with intellijPlatform.sandboxContainer.

Tasks based on the PrepareSandboxTask are sandbox producers and can be associated with sandbox consumers. To define a consumer task, implement SandboxAware and call applySandboxFrom() with the producer's TaskProvider. The producer copies runtime dependencies into lib, plugin modules into lib/modules, and external plugin dependencies into the sandbox plugins directory. It also disables IDE update checks and writes the disabled-plugin list.

When native variants are enabled, native-aware sandbox producers use the variant matching the current operating system and architecture. For those sandboxes, the matching preparePluginVariant_<os>_<arch> output replaces the base plugin JAR, and files configured for that target in intellijPlatform.nativeVariants are overlaid onto the sandbox plugin directory. The base prepareSandbox task remains platform-independent and supplies the base buildPlugin archive; custom testing sandboxes other than intellijPlatformTesting.runIde also remain platform-independent.

Native-Aware Sandbox Tasks

The plugin enables the current host variant for these sandbox producers:

Sandbox task

Consumer

prepareSandbox_runIde

runIde

prepareSandbox_runIdeBackend

runIdeBackend and runIdeSplitMode

prepareSandbox_runIdeFrontend

runIdeFrontend and runIdeSplitMode

prepareTestSandbox

Ordinary Gradle test

prepareTestIdePerformanceSandbox

Standard testIdePerformance

prepareSandbox_<customRunIdeTask>

Entries registered with intellijPlatformTesting.runIde

sandboxSuffix

Represents the suffix used i.e., for test-related or custom tasks.

The suffix is derived from the task name: prepareTestSandbox produces -test, while prepareSandbox_runIde produces _runIde. It is appended to the config, plugins, system, and log directory names under the product/version sandbox directory.

Type

Property<String>

Default value

Derived from the task name, for example "", -test, or -testIdePerformance

defaultDestinationDirectory

Specifies the default sandbox destination directory where plugin files will be copied.

Type

DirectoryProperty

Default value

SandboxAware.sandboxPluginsDirectory, or SplitModeAware.sandboxPluginsFrontendDirectory when pluginInstallationTarget is FRONTEND

pluginName

Specifies the name of the plugin directory in the sandbox.

Type

Property<String>

Default value

intellijPlatform.projectName

pluginDirectory

Specifies the directory where the plugin artifacts are to be placed.

Type

DirectoryProperty

Default value

defaultDestinationDirectory/pluginName

disabledPlugins

An internal field to hold a list of plugins to be disabled within the current sandbox. This property is controlled with the disablePlugin() and disablePlugins() methods of plugins {} .

Type

SetProperty<String>

subscriptionKey

Specifies the IntelliJ IDEA subscription key file used in this sandbox. The key file is copied to config/idea.key, and com.intellij.modules.ultimate is removed from config/disabled_plugins.txt.

Type

RegularFileProperty

Default value

intellijPlatform.subscriptionKey

pluginJar

Specifies the output archive copied into the sandbox as the main plugin artifact.

Type

RegularFileProperty

Default value

composedJar.archiveFile

pluginsClasspath

Specifies the external plugin dependency files supplied by the task's IntelliJ Platform plugin configuration.

Type

ConfigurableFileCollection

runtimeClasspath

Dependencies copied into the sandbox plugin's lib directory. Regular sandboxes use intellijPlatformSandboxRuntimeClasspath, while test sandboxes use intellijPlatformTestSandboxRuntimeClasspath. These dedicated configurations allow sandbox-only dependency exclusions without changing the project's compile or test classpaths. Plugin modules and composed modules are subtracted from this collection because they are packaged separately.

Type

ConfigurableFileCollection

prepareTest

Holds the runtime, classpath, and sandbox capabilities used to configure the ordinary test task without changing its task type. The test task depends on this preparation task.

prepareTestSandbox

The prepareSandbox task instance configured to work with the test task.

prepareTestIdePerformanceSandbox

The prepareSandbox task instance configured to work with the testIdePerformance task.

printBundledModules

Prints the list of bundled modules available within the currently targeted IntelliJ Platform. The output starts with Bundled modules for <name> <version> (<build>):, followed by sorted, unique module IDs, one per line. The task uses the same cached IDE layout index as bundled module dependency resolution, so module IDs and aliases are resolved consistently.

ideLayoutIndexService

Shared service used to resolve the cached IDE layout index for the currently targeted IDE. This is an internal implementation property, not a supported task configuration API.

Type

Property<IdeLayoutIndexService>

ideLayoutIndexCacheDirectory

On-disk cache location for layout-index snapshots derived from extracted IDE distributions.

Type

DirectoryProperty

printBundledPlugins

Prints the list of bundled plugins available within the currently targeted IntelliJ Platform. The task uses the same cached IDE layout index as bundled plugin dependency resolution.

ideLayoutIndexService

Shared service used to resolve the cached IDE layout index for the currently targeted IDE. This is an internal implementation property, not a supported task configuration API.

Type

Property<IdeLayoutIndexService>

ideLayoutIndexCacheDirectory

On-disk cache location for layout-index snapshots derived from extracted IDE distributions.

Type

DirectoryProperty

printProductsReleases

Prints the list of binary product releases that, by default, match the currently selected IntelliJ Platform along with intellijPlatform.pluginConfiguration.ideaVersion.sinceBuild and intellijPlatform.pluginConfiguration.ideaVersion.untilBuild properties.

The filter used for retrieving the release list can be customized by using properties provided with ProductReleasesFilterParameters. types defaults to the current product, channels to all release channels, and sinceBuild/untilBuild to the plugin's configured compatibility bounds. The result contains the latest releases selected from the matching listings, not every known release.

productsReleases

Property that holds the list of product releases to print and which can be used to retrieve the result list.

Type

ListProperty<String>

Default value

Dependency notations selected by ProductReleasesService using the task's filters

See also:

processResources

The standard Gradle processResources task includes the patchPluginXml output under META-INF, retaining the patched descriptor when the original resource has the same path. The output provider supplies the patch-task dependency.

Sources: ProcessResourcesCompanion

publishPlugin

Publishes one or more plugin archives to the remote plugins repository, such as JetBrains Marketplace. When intellijPlatform.nativeVariants.enabled is true, all six archives produced by buildPluginVariants are uploaded. Native-variant archives are not automatically signed by publishPlugin. Publishing is skipped with Gradle's --offline flag. Each archive is uploaded to every configured channel; the literal channel name default selects the repository's default channel.

See also:

archiveFiles

Specifies the ZIP archive files to publish to the remote repository. Configure the plural archiveFiles collection, not a singular archiveFile property. With native variants enabled, the collection contains all buildPluginVariants.archiveFiles. Otherwise, the current selection uses signPlugin.didWork: true selects signPlugin.signedArchiveFile, and false selects buildPlugin.archiveFile. This includes signing tasks skipped as up-to-date; an existing signed archive alone does not select it.

Type

ConfigurableFileCollection

Default value

buildPluginVariants.archiveFiles when native variants are enabled; otherwise signPlugin.signedArchiveFile or buildPlugin.archiveFile

See also:

host

Specifies the URL host of a plugin repository.

Type

Property<String>

Default value

intellijPlatform.publishing.host

token

Specifies the authorization token.

Type

Property<String>

Required

yes

Default value

intellijPlatform.publishing.token

channels

Specifies a list of JetBrains Marketplace channel names used as destination for the plugin upload.

Type

ListProperty<String>

Default value

intellijPlatform.publishing.channels

hidden

Publishes the plugin update and marks it as hidden to prevent public visibility after approval.

Type

Property<Boolean>

Default value

intellijPlatform.publishing.hidden

ideServices

Specifies if the IDE Services plugin repository service should be used.

Type

Property<Boolean>

Default value

intellijPlatform.publishing.ideServices

runIde

Runs the IDE instance using the currently selected IntelliJ Platform with the built plugin loaded. It directly extends the JavaExec Gradle task, which allows for an extensive configuration (system properties, memory management, etc.).

This task runs against the IntelliJ Platform and plugins specified in project dependencies. To register a customized task, use intellijPlatformTesting.runIde.

When splitMode is enabled, the task starts the IDE in Split Mode. Use runIdeSplitMode to manage both processes in one Gradle invocation, or runIdeBackend and runIdeFrontend to launch them separately. Shared IDE run configurations can be generated with generateSplitModeRunConfigurations. Direct args are not supported when Split Mode is enabled; use argumentProviders instead.

On launch, the task logs the path to the sandbox log file (idea.log in the sandbox log directory) at the lifecycle level, prefixed with IDE logs:. In Split Mode, the backend and frontend processes report their paths separately, prefixed with IDE logs (backend): and IDE logs (frontend):.

executionMode

Selects the launch profile used by the task.

Type

Property<RunIdeTask.ExecutionMode>

Default value

STANDARD

Values

STANDARD, SPLIT_MODE_BACKEND, SPLIT_MODE_FRONTEND

splitModeServerPort

The backend server port used by split-mode backend and frontend tasks. Setting it to 0 chooses and logs a random free port in 5990..6989, with an OS-assigned ephemeral port as a fallback. The resolved value remains stable for that execution.

Type

Property<Int>

Default value

5990

execOperations

Gradle's injected ExecOperations service used to launch managed processes. This is task infrastructure, not a user configuration option.

An advanced override for the join link passed to the frontend process when runIdeFrontend is launched directly. Usually, setting splitModeServerPort and starting runIdeBackend first is sufficient.

Type

Property<String>

purgeOldLogDirectories

Removes stale sandbox log directories before launching the IDE. This is useful for split-mode run configurations where frontend and backend logs are attached to the IDE run configuration.

Type

Property<Boolean>

Default value

false

Command-line option

--purge-old-log-directories

splitModeFrontendBootstrapClasspath

Bootstrap files used for direct frontend launches. The plugin derives them from the distribution's thinClient launch metadata, falling back to lib/platform-loader.jar.

Type

ConfigurableFileCollection

runIdeBackend

Runs the IDE backend process in Split Mode. The task writes the frontend join link to splitModeFrontendJoinLinkFile, which is then consumed by runIdeFrontend. It launches serverMode -p <port> and defaults to installing the plugin in the backend sandbox. The backend PID is recorded on a best-effort basis and removed when the process exits. A recorded live IDE process causes an immediate failure; an occupied port without that evidence only produces a warning. Backend restart requests using exit code 88 are relaunched with the original Gradle JVM configuration, up to ten restarts. The split-mode launchers use fixed development credentials and disable connection timeouts; they are not production remote-development server configurations.

Passing arguments directly with args is not supported for split-mode backend tasks. Use argumentProviders instead.

runIdeFrontend

Runs the JetBrains Client frontend process in Split Mode. The task waits for the join link written by runIdeBackend, or uses splitModeFrontendJoinLink when it is configured explicitly. Without an explicit link, it waits up to 30 seconds for an available backend and then fails. It launches thinClient from the full IDE distribution and defaults to installing the plugin in the frontend sandbox. When JVM debugging is enabled and its default port is unchanged, the frontend uses port 5007 rather than the backend's 5005. Compose Hot Reload is not enabled for this process.

Passing arguments directly with args is not supported for split-mode frontend tasks. Use argumentProviders instead.

runIdeSplitMode

Starts the backend, waits up to 30 seconds for its join link, then starts the frontend using the separate frontend sandbox. It uses the runIde properties and enables Split Mode by default. The backend launch is captured before frontend reconfiguration so backend restarts preserve its original settings. After the frontend finishes successfully, the task waits for the backend to exit. Exit code 193 is accepted as an expected shutdown only after the relevant process has launched.

Frontend JVM debugging is disabled in this aggregate task; use runIdeFrontend for frontend debugging. Compose Hot Reload applies only to the backend.

./gradlew runIdeSplitMode --purge-old-log-directories

runIdeForUiTests

Runs the IDE instance using the currently selected IntelliJ Platform with the built plugin and Robot Server plugin loaded.

This task is not available by default and needs to be registered manually by applying the following code:

val runIdeForUiTests by intellijPlatformTesting.runIde.registering { task { jvmArgumentProviders += CommandLineArgumentProvider { listOf( "-Drobot-server.port=8082", "-Dide.mac.message.dialogs.as.sheets=false", "-Djb.privacy.policy.text=<!--999.999-->", "-Djb.consents.confirmation.enabled=false", ) } } plugins { robotServerPlugin() } }
intellijPlatformTesting.runIde { runIdeForUiTests { task { jvmArgumentProviders.add({ [ "-Drobot-server.port=8082", "-Dide.mac.message.dialogs.as.sheets=false", "-Djb.privacy.policy.text=<!--999.999-->", "-Djb.consents.confirmation.enabled=false", ] } as CommandLineArgumentProvider) } plugins { robotServerPlugin() } } }

signPlugin

Signs the plugin distribution ZIP archive with the provided key using the Marketplace ZIP Signer library. Configure either a KeyStore or a PEM private key and certificate chain through intellijPlatform.signing. A KeyStore takes precedence and does not require separate PEM credentials. For PEM signing, the private-key password is optional and is needed only for an encrypted key. Inline private-key and certificate-chain values accept PEM text or Base64-encoded content and take precedence over their file properties.

For the standard archive produced by buildPlugin, as soon as privateKey (or privateKeyFile) and certificateChain (or certificateChainFile) are specified, this task is executed automatically before publishPlugin. Configuring keyStore also enables signing. With neither a KeyStore nor a complete PEM key/certificate pair, the task is skipped.

For more details, see Plugin Signing.

archiveFile

Specifies the unsigned ZIP archive input file. Corresponds to the in CLI option.

Type

RegularFileProperty

Default value

buildPlugin.archiveFile

signedArchiveFile

Specifies the signed ZIP archive output file. Corresponds to the out CLI option.

Predefined with the name of the ZIP archive file with -signed name suffix attached. The output file is placed next to the input archiveFile.

Type

RegularFileProperty

Default value

signPlugin.archiveFile with -signed suffix applied to the name

keyStore

Specifies the KeyStore file path. Corresponds to the ks CLI option.

Type

RegularFileProperty

Default value

intellijPlatform.signing.keyStore

keyStorePassword

Specifies the KeyStore password. Corresponds to the ks-pass CLI option.

Type

Property<String>

Default value

intellijPlatform.signing.keyStorePassword

keyStoreKeyAlias

Specifies the KeyStore key alias. Corresponds to the ks-key-alias CLI option.

Type

Property<String>

Default value

intellijPlatform.signing.keyStoreKeyAlias

keyStoreType

Specifies the KeyStore type. Corresponds to the ks-type CLI option.

Type

Property<String>

Default value

intellijPlatform.signing.keyStoreType

keyStoreProviderName

Specifies the JCA KeyStore Provider name. Corresponds to the ks-provider-name CLI option.

Type

Property<String>

Default value

intellijPlatform.signing.keyStoreProviderName

privateKey

Specifies the encoded private key in the PEM format. Corresponds to the key CLI option.

Takes precedence over the privateKeyFile property.

Type

Property<String>

Default value

intellijPlatform.signing.privateKey

privateKeyFile

Specifies a file with an encoded private key in the PEM format. Corresponds to the key-file CLI option.

Type

RegularFileProperty

Default value

intellijPlatform.signing.privateKeyFile

password

Specifies the password required to decrypt the private key. Corresponds to the key-pass CLI option.

Type

Property<String>

Default value

intellijPlatform.signing.password

certificateChain

Specifies a string containing X509 certificates. This parameter corresponds to the cert CLI option.

Takes precedence over the certificateChainFile property.

Type

Property<String>

Default value

intellijPlatform.signing.certificateChain

certificateChainFile

Specifies the path to the file containing X509 certificates. Corresponds to the cert-file CLI option.

Type

RegularFileProperty

Default value

intellijPlatform.signing.certificateChainFile

test

The base Gradle test task is preconfigured using TestCompanion to run tests with IntelliJ Platform, sandbox, and all system properties set.

The task retains Gradle's Test type and uses prepareTest for IntelliJ Platform and sandbox capabilities.

Bundled plugins declared in the target IDE's product-info.json are added to the test classpath automatically, subject to testIdeBundledPluginsClasspathExcludes, class-clash detection, and transitive exclusions. Explicitly declared plugins and modules, mandatory dependencies of the tested plugin and its plugin dependencies, and their dependencies are retained despite exclusions. Required content-module descriptors are considered, including descriptors in split JARs under lib/modules. Use testBundledPlugin() to declare a plugin explicitly when necessary, and --info to inspect exclusion reasons. The former testIdeBundledPluginsClasspathEnabled switch is no longer used.

The classpath starts with instrumented tests and the tested plugin's libraries before other plugin libraries and the platform classpath. Only JARs from plugin library directories are included. The test JVM receives GRADLE_USER_HOME and an idea.home.path pointing to the selected IDE.

testIde

Runs tests using a custom IntelliJ Platform with the developed plugin installed. It directly extends the Test Gradle task, which allows for an extensive configuration (system properties, memory management, etc.).

The TestIdeTask is a class used only for handling custom testIde tasks. No task named testIde is registered by default.

To register an additional customized test task, use intellijPlatformTesting.testIde.

The classpath ordering and bundled-plugin selection described for test also apply to these tasks.

testIdePerformance

Runs performance tests on the IDE with the developed plugin installed.

This task runs against the IntelliJ Platform and plugins specified in project dependencies. To register an additional customized task, use intellijPlatformTesting.testIdePerformance. The implementation is incubating and requires explicit values for testDataDirectory, artifactsDirectory, and profilerName; none has an active convention. It runs one IDE process for each top-level .ijperf script and stores artifacts under a directory named after that script. If a script's asserted timeout is exceeded, the task fails after collecting the failing results.

testDataDirectory

Path to the directory with test projects and .ijperf files.

Type

DirectoryProperty

artifactsDirectory

Path to the directory where performance test artifacts, such as IDE logs, snapshots, and screenshots, are stored. Create this directory before execution: the current property is annotated as an input directory.

Type

DirectoryProperty

profilerName

Name of the profiler used during execution.

Type

Property<ProfilerName>

Required

yes; for example, set ProfilerName.ASYNC or ProfilerName.YOURKIT

testUi

Runs the IDE instance with the developed plugin and Starter framework for UI testing. The registered task name is testUi, not testIdeUi; the task type remains TestIdeUiTask. It creates or reuses a source set matching the task name: src/testUi for the standard task and src/extraUi for a custom extraUi task. Dependencies use that source set's configurations, such as testUiImplementation and testUiRuntimeOnly.

Starter and Driver dependencies are supplied automatically with the standard IDE-provided exclusions. Compilation includes the IntelliJ Platform classpath; the host test JVM appends the selected IDE's classpath after the source set's runtime classpath. JUnit Platform is enabled without filtering engines. If Starter brings the Vintage engine, add JUnit 4 explicitly to the source set's runtime-only configuration because it is excluded from Starter's dependency graph. Explicit classpath and testClassesDirs overrides remain supported.

The test JVM receives path.to.build.plugin pointing to archiveFile, and defaults ide.test.version to the selected product version unless explicitly set. This task is not attached to check, test, or build; invoke it explicitly.

./gradlew testUi

archiveFile

Specifies the archive file representing the input file to be tested.

Type

RegularFileProperty

Default value

buildPlugin.archiveFile

verifyPlugin

Runs the IntelliJ Plugin Verifier CLI tool to check the binary compatibility with specified IDE builds. At least one resolved target IDE is required. The pass/fail decision reads per-plugin verification-verdict.txt reports rather than depending on console formatting, including TeamCity output. If no readable verdict is produced, the task fails rather than reporting success. Findings are also reported through Gradle's Problems API.

Due to caching, the latest Plugin Verifier release version (1.411) might not be picked up by Gradle immediately. In such cases, refresh dependencies manually.

See also:

ides

Specifies IntelliJ Platform IDEs used by the IntelliJ Plugin Verifier CLI tool for binary plugin verification. The list of IDEs is managed through the intellijPlatform.pluginVerification.ides extension.

Type

ConfigurableFileCollection

archiveFile

Specifies the input ZIP archive file of the plugin to verify. An unset input is treated as no source (@SkipWhenEmpty), not as successful verification. A configured archive must exist; the task checks this before invoking the CLI.

Type

RegularFileProperty

Default value

buildPlugin.archiveFile

externalPrefixes

Specifies a list of class prefixes from external libraries. The Plugin Verifier will not report No such class errors for classes in these packages.

Type

ListProperty<String>

Default value

intellijPlatform.pluginVerification.externalPrefixes

failureLevel

Specifies the verification level at which the task fails if any reported issue matches.

Type

ListProperty<FailureLevel>

Default value

intellijPlatform.pluginVerification.failureLevel

freeArgs

Represents a list of free arguments that are passed directly to the IntelliJ Plugin Verifier CLI tool. These arguments are used in conjunction with those provided by dedicated options.

See How to mute specific problems in pluginVerification? for sample usage.

Type

ListProperty<String>

Default value

intellijPlatform.pluginVerification.freeArgs

ignoredProblemsFile

Specifies a file that contains a list of problems that will be ignored in a report.

Type

RegularFileProperty

Default value

intellijPlatform.pluginVerification.ignoredProblemsFile

offline

Indicates whether the operation is executed in offline mode. This depends on the start parameters specified in Gradle.

Type

Property<Boolean>

Default value

StartParameter.isOffline

See also:

subsystemsToCheck

Specifies which subsystems of the IDE should be checked.

Type

Property<Subsystems>

Default value

intellijPlatform.pluginVerification.subsystemsToCheck

teamCityOutputFormat

Specifies whether to use the TeamCity-compatible output format. If set to true, outputs in a format compatible with TeamCity, directing the output to stdout.

The NOT_DYNAMIC failure level can't be combined with teamCityOutputFormat = true (also when selected via FailureLevel.ALL), as the dynamic-plugin eligibility status is neither persisted in the report files nor emitted as a TeamCity service message. The verifyPlugin task fails fast with a configuration error if both are set.

Type

Property<Boolean>

Default value

intellijPlatform.pluginVerification.teamCityOutputFormat

verificationReportsDirectory

Specifies the path to the directory where verification reports will be saved.

Type

DirectoryProperty

Default value

intellijPlatform.pluginVerification.verificationReportsDirectory

verificationReportsFormats

Specifies the output formats of the verification reports. When failureLevel contains NOT_DYNAMIC, MARKDOWN is requested additionally because the verifier persists dynamic-plugin status and its reasons in that report. For older CLI versions without that Markdown section, the task falls back to the plain console heading for dynamic status. Use a CLI supporting the Markdown dynamic-status section for format-independent NOT_DYNAMIC detection.

Type

ListProperty<VerificationReportsFormats>

Default value

intellijPlatform.pluginVerification.verificationReportsFormats

listIdes

Lists the IDEs that would be used for verification without running the verification itself. This skips the verifier invocation, not Gradle task dependencies: target IDE resolution and archive production can still occur.

Type

Property<Boolean>

Default value

false

Command-line option

--list-ides

useBundledRuntime

Uses each verified IDE's bundled JetBrains Runtime for resolving plugin classes. When enabled, the CLI receives no -runtime-dir; the task's resolved runtime is supplied through JAVA_HOME only as a fallback for IDEs without a bundled runtime. Set this to false to force the task's runtimeDirectory for every target IDE via -runtime-dir. This controls verification class resolution, not the JVM running Gradle.

Type

Property<Boolean>

Default value

intellijPlatform.pluginVerification.useBundledRuntime (true)

problemsReportFile

Default path of the Problems API HTML report file produced for verification failures.

Type

RegularFileProperty

Default value

[buildDirectory]/reports/problems/problems-report.html

verifyPluginProjectConfiguration

Validates the plugin project configuration:

  • The effective plugin descriptor must be available for non-module projects, and since-build must not contain a wildcard.

  • The patchPluginXml.sinceBuild property can't be lower than the target IntelliJ Platform major version.

  • The until-build property should be removed for IntelliJ Platform 2024.3+ (243+).

  • The Java/Kotlin sourceCompatibility and targetCompatibility properties should be aligned with the Java versions required by patchPluginXml.sinceBuild and the currently used IntelliJ Platform.

  • The Kotlin API version should be aligned with the version required by patchPluginXml.sinceBuild and the currently used IntelliJ Platform.

  • The Kotlin language version should not be lower than the version bundled with the target platform, and IntelliJ Platform 2025.1+ requires Kotlin 2.0.0 or later.

  • The used IntelliJ Platform version should be 2023.3 (233) or higher.

  • The dependency on the Kotlin Standard Library (stdlib) should be excluded.

  • The Kotlin Coroutines library should not be added explicitly to the project as it is already provided with the IntelliJ Platform.

  • For non-module projects, the default [rootProject]/.intellijPlatform cache directory is checked for a .intellijPlatform entry in .gitignore only when both exist. Custom cache locations are not checked.

  • The selected Java Runtime should be JetBrains Runtime (JBR).

These diagnostics are warnings, not verification failures. Descriptor checks do not apply to module projects. The task uses the same configuration-rule evaluator as intellijPlatformDoctor, but additionally checks the runtime vendor.

For more details regarding the Java version used in the specific IntelliJ SDK, see Build Number Ranges.

See also:

rootDirectory

Specifies the root project path.

Type

Property<File>

Default value

[rootProject]

intellijPlatformCache

Specifies the IntelliJ Platform cache directory.

Type

DirectoryProperty

Default value

intellijPlatform.caching.path

gitignoreFile

Specifies the .gitignore file located in the [rootDirectory], tracked for content changes.

Type

RegularFileProperty

Default value

[rootProject]/.gitignore if it exists; otherwise unset

sourceCompatibility

Effective Java source level used for diagnostics, preferring compileJava.options.release over compileJava.sourceCompatibility.

Type

Property<String>

Default value

compileJava.options.release, or compileJava.sourceCompatibility when no release is configured

targetCompatibility

Effective Java target level used for diagnostics, preferring compileJava.options.release over compileJava.targetCompatibility.

Type

Property<String>

Default value

compileJava.options.release, or compileJava.targetCompatibility when no release is configured

mutedMessages

List of message patterns to mute during verification. Each pattern is matched against the message text using a case-sensitive contains check. This filters the aggregate console warning; the structured Problems API findings are still reported.

Type

ListProperty<String>

Default value

verifyPluginProjectConfigurationMutedMessages

kotlinPluginAvailable

Indicates that the Kotlin Gradle Plugin is loaded and available.

Type

Property<Boolean>

Default value

Kotlin Gradle Plugin presence

kotlinApiVersion

The Kotlin compilation apiVersion supplied by KotlinMetadataAware.

Type

Property<String>

Default value

The configured Kotlin compilation option, if available

kotlinLanguageVersion

The Kotlin compilation languageVersion.

Type

Property<String>

Default value

The configured Kotlin compilation option, if available

kotlinVersion

Specifies the version of Kotlin used in the project.

Type

Property<String>

Default value

kotlin.coreLibrariesVersion

kotlinJvmTarget

The Kotlin compilation jvmTarget.

Type

Property<String>

Default value

The configured Kotlin compilation option, if available

kotlinStdlibDefaultDependency

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

Type

Property<Boolean>

Default value

kotlin.stdlib.default.dependency Gradle property

kotlinxCoroutinesLibraryPresent

Indicates whether the resolved composed-JAR dependency graph includes a Kotlin Coroutines component, including transitively.

Type

Property<Boolean>

Default value

An org.jetbrains.kotlinx component with a module name starting with kotlinx-coroutines is present

pluginXmlService

Shared descriptor-parsing service supplied by the plugin, not a user configuration option.

Type

Property<PluginXmlService>

verifyPluginSignature

Validates the signature of the plugin archive file using the Marketplace ZIP Signer library. The default input is a conventional file path, not a task-output dependency on signPlugin. Run signing first, or wire the provider explicitly, especially when customizing archive names or locations:

tasks.verifyPluginSignature { inputArchiveFile.set(tasks.signPlugin.flatMap { it.signedArchiveFile }) }
tasks.named('verifyPluginSignature') { inputArchiveFile.set(tasks.named('signPlugin').flatMap { it.signedArchiveFile }) }

See also:

inputArchiveFile

Specifies the signed ZIP archive file to verify. This parameter corresponds to the in CLI option.

Type

RegularFileProperty

Default value

[buildDirectory]/distributions/[intellijPlatform.projectName]-[intellijPlatform.pluginConfiguration.version]-signed.zip

certificateChain

Specifies a string containing X509 certificates. This parameter corresponds to the cert CLI option.

Takes precedence over the certificateChainFile property. The content is written unchanged to a temporary PEM file and passed with -cert; unlike signing, this task does not decode Base64 content.

Type

Property<String>

Default value

intellijPlatform.signing.certificateChain

certificateChainFile

Specifies the path to the file containing X509 certificates. The file path is passed with the cert CLI option.

Type

RegularFileProperty

Default value

intellijPlatform.signing.certificateChainFile

verifyPluginStructure

Validates completeness and contents of plugin.xml descriptors as well as plugin archive structure.

See also:

ignoreFailures

When true, prevents verification findings from failing the build.

Type

Property<Boolean>

Default value

false

ignoreUnacceptableWarnings

When true, tolerates unacceptable warnings; when false, they fail the build unless ignoreFailures is enabled.

Type

Property<Boolean>

Default value

false

ignoreWarnings

When true, tolerates ordinary warnings; when false, they fail the build unless ignoreFailures is enabled.

Type

Property<Boolean>

Default value

true

pluginDirectory

Specifies the location of the built plugin file used for verification.

Type

DirectoryProperty

Default value

prepareSandbox.pluginDirectory

30 November 2026