fix(build): Fix IDE flavor resolution for 2025.3 unified distribution #6185
+15
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types of changes
Description
Starting with 2025.3, JetBrains unified the IntelliJ IDEA distribution - there is no longer a separate Community edition download. The
ideaIC-2025.3artifact doesn't exist; onlyideaIU-2025.3is available.This PR fixes two related issues:
1. Subplugin dependency resolution fails for 2025.3
Problem:
toolkit-intellij-subplugin.gradle.ktswas trying to resolveideaIC-2025.3which doesn't exist.Fix: Added IC→IU mapping when version starts with
2025.3and flavor isIC, so dependencies resolve againstideaIU-2025.3instead.2.
runIdeVariantproperty doesn't override default IDE flavorProblem: Running with
-PrunIdeVariant=IUstill launchedideaICinstead ofideaIU. This is due to Gradle property precedence -.set()creates an immutable value that.convention()cannot override.Fix:
toolkit-intellij-plugin.gradle.ktsto use.convention()(sets overridable default)toolkit-publish-root-conventions.gradle.ktsto use.set()(actually overrides)This complements the existing 2025.3 handling in
feadd1bfcwhich addressed the root project but not subplugin dependencies or runtime IDE selection.Impact
Without these fixes:
-PrunIdeVariant=IUincorrectly launch IC instead of IUChecklist
Note: No tests added as these are build system configuration changes. No changelog entry needed as this is not customer-facing.
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.