[//]: # (title: Gradle IntelliJ Plugin – FAQ) ## Frequently Asked Questions ### How to modify JVM arguments of runIde task [`runIde`](tools_gradle_intellij_plugin.md#runide-task) task is a [Java Exec](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html) task and can be modified according to the documentation. To add some JVM arguments while launching the IDE, configure [`runIde`](tools_gradle_intellij_plugin.md#runide-task) task as follows: ```kotlin tasks { runIde { jvmArgs("-DmyProperty=value") } } ``` ```groovy runIde { jvmArgs "-DmyProperty=value" } ``` ### How to modify system properties of runIde task Using the [very same task documentation](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html), configure [`runIde`](tools_gradle_intellij_plugin.md#runide-task) task: ```kotlin tasks { runIde { systemProperty("name", "value") } } ``` ```groovy runIde { systemProperty("name", "value") } ``` ### How to disable automatic reload of dynamic plugins Configure [`runIde`](tools_gradle_intellij_plugin.md#runide-task) task as follows: ```kotlin tasks { runIde { autoReloadPlugins.set(false) } } ``` ```groovy runIde { autoReloadPlugins = false } ``` ### How to disable building searchable options Building searchable options can be disabled as a task: ```kotlin tasks { buildSearchableOptions { enabled = false } } ``` ```groovy buildSearchableOptions.enabled = false ``` As a result of disabling building searchable options, the configurables that your plugin provides won't be searchable in the Settings dialog. ### How do I add my a custom file inside plugin distribution [`prepareSandbox`](tools_gradle_intellij_plugin.md#preparesandbox-task) task is a [`Sync`](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Sync.html) task and can be modified accordingly. Something like following should work: ```kotlin tasks { prepareSandbox { from("yourFile") { into("${intellij.pluginName.get()}/lib/") } } } ``` ```groovy prepareSandbox { from("yourFile") { into "${intellij.pluginName.get()}/lib/" } } ```