IntelliJ Platform Plugin SDK Help

Gradle Properties

The IntelliJ Platform Gradle Plugin exposes a number of Gradle properties to control some of the low-level Gradle plugin behaviors. To enable or disable a particular feature, add a Project property to the gradle.properties file with the following pattern:

org.jetbrains.intellij.platform.<name>=<value>

downloadSources

Instruct the IDE that sources are needed to be downloaded when working with IntelliJ Platform Gradle Plugin.

Value is passed directly to the Idea Gradle Plugin to the idea.module.downloadSources property.

See also:

Default value

true

Example
org.jetbrains.intellij.platform.downloadSources=true

intellijPlatformCache

Specifies the location of the local IntelliJ Platform cache directory for storing files related to the current project, like:

Default value

[rootProject]/.intellijPlatform/

Example
org.jetbrains.intellij.platform.intellijPlatformCache=/path/to/intellijPlatformCache/

localPlatformArtifacts

The localPlatformArtifacts() entry applied to the repositories {} block is required to apply to the project dependencies that need extra pre-processing before they can be correctly used by the IntelliJ Platform Gradle Plugin and loaded by Gradle.

Default value

intellijPlatformCache/localPlatformArtifacts/

Example
org.jetbrains.intellij.platform.localPlatformArtifacts=/path/to/localPlatformArtifacts/

noSearchableOptionsWarning

When the buildSearchableOptions doesn't produce any results, for example, when the plugin doesn't implement any Settings, a warning is shown to suggest disabling it for better performance with buildSearchableOptions .

Default value

true

Example
org.jetbrains.intellij.platform.buildSearchableOptions=false

paidPluginSearchableOptionsWarning

Due to IDE limitations, it is impossible to run the IDE in headless mode to collect searchable options for a paid plugin. As paid plugins require providing a valid license and presenting a UI dialog, it is impossible to handle such a case, and the task will fail. This feature flag displays the given warning when the task is run by a paid plugin.

Default value

true

Example
org.jetbrains.intellij.platform.paidPluginSearchableOptionsWarning=false

productsReleasesAndroidStudioUrl

Specifies the URL from which the list of all Android Studio releases is fetched. This listing is later parsed by ProductReleasesValueSource to provide a list of IDEs matching the filtering criteria for running the IntelliJ Plugin Verifier tool with the verifyPlugin task.

Default value

https://jb.gg/android-studio-releases-list.xml

Example
org.jetbrains.intellij.platform.productsReleasesAndroidStudioUrl=https://...

productsReleasesJetBrainsIdesUrl

Specifies the URL from which the list of all Android Studio releases is fetched. This listing is later parsed by ProductReleasesValueSource to provide a list of IDEs matching the filtering criteria for running the IntelliJ Plugin Verifier tool with the verifyPlugin task.

Default value

https://www.jetbrains.com/updates/updates.xml

Example
org.jetbrains.intellij.platform.productsReleasesJetBrainsIdesUrl=https://...

selfUpdateCheck

Checks whether the currently used IntelliJ Platform Gradle Plugin is outdated and if a new release is available. The plugin performs an update check on every run asking the GitHub Releases page for the redirection URL to the latest version with HEAD HTTP request: https://github.com/jetbrains/gradle-intellij-plugin/releases/latest.

If the current version is outdated, the plugin will emit a warning with its current and the latest version.

Feature respects the Gradle --offline mode.

Default value

true

Example
org.jetbrains.intellij.platform.selfUpdateCheck=false

shimServerPort

Specifies the default Shim server port at which the local webserver is run. The Shim server is used to proxy requests to the authorized custom plugin repositories registered with customPluginRepository().

Default value

7348

Example
org.jetbrains.intellij.platform.shimServerPort=7348

useCacheRedirector

By default, JetBrains Cache Redirector is used when resolving Maven repositories or any resources used by the IntelliJ Platform Gradle Plugin. Due to limitations, sometimes it is desired to limit the list of remote endpoints accessed by Gradle.

It is possible to refer to the direct location (whenever it is possible) by switching off JetBrains Cache Redirector globally.

Default value

true

Example
org.jetbrains.intellij.platform.useCacheRedirector=false
Last modified: 26 July 2024