Skip to content

fix: remove until-build magic value 999.* from plugin descriptor - #36

Merged
catatafishen merged 1 commit into
masterfrom
fix/until-build-magic-value
Sep 4, 2026
Merged

catatafishen merged 1 commit into
masterfrom
fix/until-build-magic-value

Conversation

@catatafishen

Copy link
Copy Markdown
Owner

Problem

JetBrains Marketplace rejects plugin uploads with:
```
{"statusCode":400,"message":"Invalid plugin descriptor 'plugin.xml'. The attribute (999.*) should not contain a magic value (999)..."}
```

Root cause

The deployed plugin.xml's <idea-version> is patched by Gradle's intellij-platform plugin from build.gradle.kts at build time (not from the source plugin.xml directly). build.gradle.kts had:
```kotlin
ideaVersion {
sinceBuild = "242"
untilBuild = "999.*"
}
```
which produced the rejected magic value.

Fix

Removed untilBuild so the plugin is marked compatible with all future IDE versions, per JetBrains' own recommendation in the error message. Verified with a clean ./gradlew patchPluginXml build that the generated descriptor now emits only <idea-version since-build=\"242\" /> with no until-build attribute.

JetBrains Marketplace rejects plugin uploads whose <until-build> contains
the magic value 999 (e.g. "999.*"), returning:
"Invalid plugin descriptor 'plugin.xml'. The <until-build> attribute
(999.*) should not contain a magic value (999)."

The generated plugin.xml gets its <idea-version> patched by Gradle's
intellij-platform plugin from build.gradle.kts, not from the source
plugin.xml directly, so untilBuild = "999.*" there was the actual root
cause. Removed it so the plugin is marked compatible with all future IDE
versions, per JetBrains' own recommendation.

Co-authored-by: Copilot <[email protected]>
Copilot AI lite review requested due to automatic review settings September 4, 2026 09:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The functional change directly resolves the Marketplace rejection, and the only feedback is a minor clarity/documentation improvement.

Pull request overview

This PR addresses JetBrains Marketplace validation failures by removing the “magic” until-build="999.*" upper bound from the generated plugin.xml descriptor, so the plugin is not rejected during upload.

Changes:

  • Updated IntelliJ Platform Gradle configuration to avoid emitting an until-build value in the patched plugin descriptor.
  • Minor whitespace/indentation adjustment in plugin.xml (no functional change).
File summaries
File Description
build.gradle.kts Sets untilBuild to a null provider so patchPluginXml omits the until-build attribute (removing the 999.* magic value).
src/main/resources/META-INF/plugin.xml Whitespace-only indentation change in the toolWindow declaration.
Review details

Copilot wasn't able to review any files in this pull request.

  • Files reviewed: 0/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@catatafishen
catatafishen merged commit ac44572 into master Sep 4, 2026
6 checks passed
@catatafishen
catatafishen deleted the fix/until-build-magic-value branch September 4, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants