From 9e2b8897bfa07f638a76bdc37e2da8cc9a42fa89 Mon Sep 17 00:00:00 2001 From: Nikolay Chashnikov Date: Wed, 1 Jul 2026 12:38:40 +0200 Subject: [PATCH] IJPL-248591 move swingx library to a separate JAR in the distribution Before it was included in intellij.libraries.swingx content module that was registered as 'embedded' the core plugin in all products, so behavior won't be changed, the classes from the library are still loaded by the core classloader. Reviewed in IJ-MR-211289. GitOrigin-RevId: 57b1fb9afbbd951994801f6dc9a3955b0e0bc6e1 --- libraries/swingx/module-content.yaml | 5 +---- .../src/org/jetbrains/intellij/build/impl/PlatformModules.kt | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/swingx/module-content.yaml b/libraries/swingx/module-content.yaml index d88895c1579d..d06a85b18ccd 100644 --- a/libraries/swingx/module-content.yaml +++ b/libraries/swingx/module-content.yaml @@ -1,6 +1,3 @@ - name: dist.all/lib/intellij.libraries.swingx.jar modules: - - name: intellij.libraries.swingx - libraries: - swingx: - - name: $MAVEN_REPOSITORY$/org/swinglabs/swingx-core/1/swingx-core-1.jar \ No newline at end of file + - name: intellij.libraries.swingx \ No newline at end of file diff --git a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt index cbdb5383e1fe..6d5e4e3f1fa2 100644 --- a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt +++ b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt @@ -119,6 +119,9 @@ internal suspend fun createPlatformLayout(projectLibrariesUsedByPlugins: SortedS ) } + // the library is put to a separate JAR due to IJPL-248591; it would be better to get rid of it completely, see IJPL-749 + layout.withModuleLibrary(libraryName = "swingx", moduleName = "intellij.libraries.swingx") + // platform-loader.jar is loaded by JVM classloader as part of loading our custom PathClassLoader class - reduce file size addModule(PLATFORM_LOADER_JAR, sequenceOf( "intellij.platform.util.rt.java8",