Skip to content

Commit 9cf780d

Browse files
meanmailclaude
andcommitted
Add localPluginPath option to load pre-built plugin in runIde tasks
When localPluginPath is set in gradle.properties, all runIdea, runPyCharm, runCLion etc. tasks will load the plugin from the specified ZIP file instead of building from source. This speeds up testing with pre-built plugin distributions. Usage: Set localPluginPath=/path/to/plugin.zip in gradle.properties 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7b431a5 commit 9cf780d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ baseIDE=idea
1414
enableBuildSearchableOptions=false
1515

1616
# for running idea, pycharm, webstorm or android studio with plugins locally
17+
# Path to pre-built plugin ZIP for runIde tasks (optional, overrides building from source)
18+
localPluginPath=/Users/alexanderpetrov/Downloads/JetBrainsAcademy-2025.11-2025.2-994.zip
1719
#pyCharmPath=/home/user/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-4/172.3544.46
1820
#webStormPath=/Users/user/Library/Application Support/JetBrains/Toolbox/apps/WebStorm/ch-0/183.5429.34/WebStorm.app/Contents
1921
#cLionPath=/Users/user/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/183.5429.37/CLion.app/Contents

intellij-plugin/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ fun IntelliJPlatformTestingExtension.customRunIdeTask(
266266

267267
plugins {
268268
plugins(idePlugins(type))
269+
// Load pre-built plugin ZIP instead of building from source if localPluginPath is set
270+
if (hasProp("localPluginPath")) {
271+
localPlugin(file(prop("localPluginPath")))
272+
}
269273
}
270274
}
271275
}

0 commit comments

Comments
 (0)