From 1389b1dc24bb596887a156ec6471dc43decb809e Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Sat, 6 Sep 2025 21:04:46 +0200 Subject: [PATCH] [devkit] IJPL-158473 Update source attachment logic for IDEA product versions >= 253 Signed-off-by: Jakub Chrzanowski (cherry picked from commit e0896dcd132afef01f5a965ae4c67b81e270b968) IJ-CR-174725 GitOrigin-RevId: 90e533eeed10f3fd4092bc90e998118227c4fe0a --- .../src/IntelliJPlatformAttachSourcesProvider.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/devkit/intellij.devkit.gradle/src/IntelliJPlatformAttachSourcesProvider.kt b/plugins/devkit/intellij.devkit.gradle/src/IntelliJPlatformAttachSourcesProvider.kt index c74fed2b4f36..4ac8b85ba936 100644 --- a/plugins/devkit/intellij.devkit.gradle/src/IntelliJPlatformAttachSourcesProvider.kt +++ b/plugins/devkit/intellij.devkit.gradle/src/IntelliJPlatformAttachSourcesProvider.kt @@ -276,11 +276,15 @@ internal class IntelliJPlatformAttachSourcesProvider : AttachSourcesProvider { // IntelliJ IDEA Ultimate has sources published since 242; otherwise we use IC. IntelliJPlatformProduct.IDEA -> when { - majorVersion >= 242 -> IntelliJPlatformProduct.IDEA + majorVersion >= 253 -> IntelliJPlatformProduct.IDEA + majorVersion >= 242 -> IntelliJPlatformProduct.IDEA_IU else -> IntelliJPlatformProduct.IDEA_IC } // Any other IntelliJ Platform should use IC - else -> IntelliJPlatformProduct.IDEA_IC + else -> when { + majorVersion >= 253 -> IntelliJPlatformProduct.IDEA + else -> IntelliJPlatformProduct.IDEA_IC + } }.mavenCoordinates }