intellij-platform-gradle-plugin
AGENTS.md1.5k starsChanged 11 days agoApache-2.0View on GitHub
The IntelliJ Platform Gradle Plugin is a Kotlin Gradle plugin for building, testing, verifying, and publishing plugins for IntelliJ-based IDEs. Run commands from the repository root using ./gradlew (gradlew.bat on Windows). Use JDK 21 to match CI; compilation uses a Java 17 toolchain and Kotlin 2.2 language/API settings in build.gradle.kts. The Foojay resolver in settings.gradle.kts can provision the toolchain. The wrapper currently uses Gradle 9.8.2. Initial setup and tests need network access for Gradle, toolchains, dependencies, and IDE distributions. TestKit…
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about JetBrains/intellij-platform-gradle-plugin
- fahimmehraj/jetbrains-kanagawa-theme“Bump to 2025.2 + intellij platform bump to 2.7.2”GitHub · Aug 22, 2025 · 8 reactions
- @chrzanowski.info“Hi 👋 I'm doing the IntelliJ Platform Gradle Plugin 🫣 github.com/JetBrains/in...”Bluesky · Nov 26, 2024 · 4 likes
- Kilo-Org/kilocode“chore(jetbrains): migrate to stable IntelliJ Gradle plugin”GitHub · Jul 1, 2026 · 2 reactions
- flutter/flutter-intellij“Upgrade version of Android Studio”GitHub · May 4, 2026 · 2 reactions
- dweindl/intellij-antimony“Retry flaky Test job and capture stack traces on failure”GitHub · Aug 4, 2026 · 1 reactions
The biggest 5 of 35 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 35
Talked about on GitHub and Bluesky (35 times).
On GitHub · 34
- Aug 22, 2025Bump to 2025.2 + intellij platform bump to 2.7.2 — fahimmehraj/jetbrains-kanagawa-theme8 reactions · 4 comments
- Jul 1, 2026chore(jetbrains): migrate to stable IntelliJ Gradle plugin — Kilo-Org/kilocode2 reactions · 1 comment
- May 4, 2026Upgrade version of Android Studio — flutter/flutter-intellij2 reactions · 2 comments
- Aug 4, 2026Retry flaky Test job and capture stack traces on failure — dweindl/intellij-antimony1 reaction · 1 comment
- Apr 27, 2026[deps] bump intellij gradle platform — flutter/dart-intellij-third-party1 reaction
29 more on GitHub
- Feb 21, 2026Update/fix `NOT_DYNAMIC` error message for clarity — ChrisCarini/intellij-platform-plugin-verifier-action1 reaction · 1 comment
- Feb 5, 2026Remove verify and test from deploy (dev build) — flutter/flutter-intellij1 reaction
- Jul 16, 2025Support 2024.2 and later — cue-lang/intellij-cue1 reaction · 3 comments
- Mar 10, 2025Fix: IntelliJ Platform version upgrades — domaframework/doma-tools-for-intellij1 reaction · 1 comment
- Nov 16, 2024Update Intellij Platform to newest version — Xavalon/XamlStyler1 reaction
- Nov 9, 2026build(deps): bump org.jetbrains.intellij.platform:intellij-platform-gradle-plugin from 2.19.0 to 2.20.0 — modelix/modelix.mps-build-tools0 reactions
- Nov 2, 2026security metadata: reconcile rejected Undertow CVE in advisory feeds — JuanTorchia/gmm-haproxy-jetbrains0 reactions
- Nov 2, 2026security metadata: reconcile rejected Undertow CVE in advisory feeds — JuanTorchia/X-509-Certificate-Viewer0 reactions
- Oct 16, 2026Remove the compileTestKotlin workaround after the update to Gradle 9.9.0 — artptr/moon-explorer0 reactions
- Oct 5, 2026Migrate to IntelliJ Platform GrammarKit — sqldelight/Grammar-Kit-Composer0 reactions
- Sep 16, 2026Using the Jetbrains plugin with `runIde` fails start — kson-org/kson0 reactions · 1 comment
- Sep 14, 2026SLI-2887 Remove obsolete Kotlin Gradle Plugin workaround from CLion — SonarSource/sonarlint-intellij0 reactions · 7 comments
- Jul 26, 2026Archive this repository — JetBrains/gradle-grammar-kit-plugin0 reactions · 1 comment
- Jun 25, 2026### What happened? — kingamenyar-glitch/Srosh0 reactions
- Apr 14, 2026Upgrade to Junit v6 — premium-minds/datagrip-vault-plugin0 reactions · 1 comment
- Feb 8, 2026Update from Gradle IntelliJ Plugin v1 to IntelliJ Platform Gradle Plugin v2 — premium-minds/datagrip-vault-plugin0 reactions · 1 comment
- Jan 28, 2026Library declares incorrect OkHttp version dependency — JetBrains/plugin-repository-rest-client0 reactions · 2 comments
- Nov 26, 2025Remove dependency on kotlinx-serialization-runtime? — GradleUp/gratatouille0 reactions
- Oct 24, 2025Re-enable compatibility problems check during plugin verification — flutter/flutter-intellij0 reactions · 1 comment
- Aug 10, 2025Enable verifyPlugin back after investigation — ForNeVeR/AvaloniaRider0 reactions
- Mar 29, 2025marketo.net — mypdns/matrix0 reactions
- Mar 20, 2025Strict dependency on snakeyaml 2.2 breaks gradle builds that use this — JetBrains/plugin-repository-rest-client0 reactions · 3 comments
- Jan 20, 2025Clean up plugin and build tooling configurations — Noorts/Toggler0 reactions
- Dec 5, 2024Can't update to latest IJ gradle 2.1.0 — redhat-developer/intellij-openshift-connector0 reactions
- Nov 7, 2024Upgrade org.jetbrains.intellij Gradle plugin — premium-minds/datagrip-vault-plugin0 reactions · 2 comments
- Sep 19, 2024Reimplement IDE compatibility check in CI — xdev-software/intellij-plugin-template0 reactions
- Aug 3, 2024Phase 2 Meta Issue - Build Environment Improvements — intellij-elixir/intellij-elixir0 reactions · 4 comments
- Jul 2, 2024Anonymous classes in `UnmanagedBranchNotificationFactory` should not implement `DataContext` — VirtusLab/git-machete-intellij-plugin0 reactions
- Apr 22, 2024feat: Use `since/until-build` instead of listing out all releases — asyncapi/jasyncapi-idea-plugin0 reactions · 3 comments
On Bluesky · 1
- Nov 26, 2024Hi 👋 I'm doing the IntelliJ Platform Gradle Plugin 🫣 github.com/JetBrains/in... — @chrzanowski.info4 likes and reposts
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Run commands from the repository root using ./gradlew (gradlew.bat on Windows).
- Very specific: line 19
When discussing issues, designing features, or changing Gradle integration, inspect the sources for the version pinned in …
- Very specific: line 22
Search that source tree for the relevant types and follow their implementation and lifecycle.
- Very specific: line 37
Use --tests 'fully.qualified.ClassName.methodName' to narrow further.
- Distinctive: line 51
Read CONTRIBUTING.md for code style, changelog, and contribution requirements.
- Very specific: line 59
Keep always-relevant project guidance in this file.
- Distinctive: line 67
Run focused checks for changed behavior and broaden validation according to risk.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent instructions
Project
The IntelliJ Platform Gradle Plugin is a Kotlin Gradle plugin for building, testing, verifying, and publishing plugins for IntelliJ-based IDEs.
- Production code:
src/main/kotlin/org/jetbrains/intellij/platform/gradle/.plugins/contains project/settings entry points,extensions/the consumer DSL, andtasks/task implementations; supporting packages handle artifacts, models, providers, and services. - Tests:
src/test/contains unit and Gradle TestKit tests;src/integrationTest/exercises fixture projects in itsresources/directory. Shared TestKit infrastructure lives insrc/testFixtures/. build-logic/is an included build. Dependency versions live ingradle/libs.versions.toml.
Development environment
Run commands from the repository root using ./gradlew (gradlew.bat on Windows). Use JDK 21 to match CI; compilation uses a Java 17 toolchain and Kotlin 2.2 language/API settings in build.gradle.kts. The Foojay resolver in settings.gradle.kts can provision the toolchain. The wrapper currently uses Gradle 9.8.2.
Initial setup and tests need network access for Gradle, toolchains, dependencies, and IDE distributions. TestKit suites can require substantial disk space and memory; the build configures an 8 GB Gradle heap and 4 GB test-worker heaps.
Gradle sources
When discussing issues, designing features, or changing Gradle integration, inspect the sources for the version pinned in gradle/wrapper/gradle-wrapper.properties (currently 9.8.2). This checkout's wrapper version is the development reference, rather than the minimum supported version or a floating latest Gradle release; fetching 9.0.0 sources is unnecessary.
- Reuse the wrapper's
-all.zipdistribution: it includes binaries, documentation, and sources. Sources are underGRADLE_USER_HOME(default~/.gradle) atwrapper/dists/gradle-<version>-all/<hash>/gradle-<version>/src/. For the current wrapper, the default path is~/.gradle/wrapper/dists/gradle-9.8.2-all/<hash>/gradle-9.8.2/src/. Discover the hash directory locally rather than hard-coding it. - Search that source tree for the relevant types and follow their implementation and lifecycle. The
-alllayout issrc/<module>/<package>/..., for examplesrc/core-api/org/gradle/api/Project.java; Git repository and-src.zippaths instead retain directories such assubprojects/<module>/src/main/java/orplatforms/<area>/<module>/src/main/java/. - For an uncached, one-off lookup, use the matching version's Javadoc or Gradle Git tag. For repeated local searches,
./gradlew --versionprovisions the configured-alldistribution if absent, without changing the wrapper; run it only when execution and downloads are authorized. Respect the audit procedure's read-only permissions. - Treat documented public APIs as the supported contract and implementation sources as supporting evidence, not permission to depend on internal APIs (
.internal.packages orInternaltypes). Check the API lifecycle for incubating and deprecated APIs. Cite the inspected version and symbol; when the wrapper changes, use matching sources, documentation, and tags instead of/current/links.
Commands
| Purpose | Command |
| Initialize the build | ./gradlew help |
| Build artifacts, including sources and documentation | ./gradlew assemble |
| Focused unit test (replace the selector) | ./gradlew test --tests '*WriteTextAtomicallyIfChangedTest' |
| Focused integration test (replace the selector) | ./gradlew integrationTest --tests '*PluginXmlPatchingIntegrationTest' |
| Binary API compatibility | ./gradlew apiCheck |
| Full local build and validation | ./gradlew build integrationTest |
Use --tests 'fully.qualified.ClassName.methodName' to narrow further. The task is singular integrationTest, and it is not wired into check; request it explicitly.
-PtestGradleVersion=9.0.0 selects the Gradle version used by nested TestKit builds, not the wrapper. CI tests minimum, current, and nightly Gradle on Linux, Windows, and macOS; consult .github/workflows/reusable-unitTests.yml and .github/workflows/reusable-integrationTests.yml when changing compatibility. Tests reuse .gradle/testGradleHome; override it with -PtestGradleUserHome=<path> or control forks with -PtestMaxParallelForks=<count>. Inspect failures in build/diagnostics/ and build/reports/tests/ before considering cache resets.
Project constraints
- Support floors live in
Constants.Constraints(src/main/kotlin/org/jetbrains/intellij/platform/gradle/Constants.kt); keep them distinct from the wrapper and default test IDE versions. Preserve the IntelliJ Platform floor of 2023.3 (build 233). - The Gradle minimum is currently 9.0.0. If a needed public API requires a newer release, raise the declared minimum to the first version providing it rather than add compatibility workarounds solely to retain 9.0.0 support. Keep compatibility checks, minimum-version CI/tests, and documentation aligned with that change, and validate affected behavior against the declared minimum and wrapper versions. Reading newer sources alone does not change the declared support floor.
- Preserve consumer-facing DSL, task names, properties, and source/binary compatibility.
api/IntelliJPlatformGradlePlugin.apiis generated from public Kotlin declarations; regenerate with./gradlew apiDumponly for intentional, reviewed API changes and inspect the resulting diff. - Preserve Gradle configuration-cache support and lazy configuration. Use the existing configuration-cache test helpers when changing configuration behavior. Keep the Java/Kotlin targets and unbundled Kotlin standard library settings unless the task explicitly changes compatibility.
- Edit source inputs rather than generated outputs under
build/: plugin descriptors come from thegradlePluginblock inbuild.gradle.kts, and Dokka documentation comes from source KDoc.
Documentation
- Read CONTRIBUTING.md for code style, changelog, and contribution requirements.
- For integration-test or fixture work, read INTEGRATION_TESTS.md; use the task name documented above.
- For CI or compatibility changes, read .github/workflows/README.md and the relevant workflows.
- For CLI reporting changes, read CLI_REPORTS.md for JSON contracts and safety requirements.
- For user-facing behavior, follow the SDK documentation linked from README.md.
Agent workflows
Keep always-relevant project guidance in this file. Store task-specific procedures in docs/agents/ with descriptive filenames, and add a short pointer here explaining when to read each one; those files are not loaded automatically. Keep reports and findings in docs/audits/, separate from instructions.
Repository audits
When explicitly asked to audit the project, read docs/agents/audit.md and follow its procedure and permissions. Recheck relevant earlier dated reports in docs/audits/, if any, against current code, recording their dates, audited revisions, and any unknown provenance. An audit produces a report; implement fixes only when the requested task also includes remediation. When saving a report is explicitly authorized, use docs/audits/YYYY-MM-DD-<short-sha>.md, using the audit date and audited commit, without replacing earlier reports. Do not create placeholder reports.
Completing a task
Run focused checks for changed behavior and broaden validation according to risk. Documentation-only changes need link and diff checks, not builds or tests. Summarize changes, exact verification commands and results, skipped checks, and anything left unverified.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

