don't use intellij.platform.ide.impl module to define libraries that should be packed into all products (javax.activation, jaxb-api, jaxb-runtime, javax.annotation-api) - specify it in PlatformModules with explanation for what

GitOrigin-RevId: 9345f3e003a55c2d4691240afac031f82c764ec6
This commit is contained in:
Vladimir Krivosheev
2024-04-02 14:07:46 +00:00
committed by intellij-monorepo-bot
parent 438bd756a9
commit d0a981b512
3 changed files with 21 additions and 7 deletions
@@ -147,9 +147,17 @@ sealed class BaseLayout {
}
fun withProjectLibrary(libraryName: String) {
includedProjectLibraries.add(ProjectLibraryData(libraryName = libraryName,
packMode = LibraryPackMode.MERGED,
reason = "withProjectLibrary"))
includedProjectLibraries.add(
ProjectLibraryData(libraryName = libraryName, packMode = LibraryPackMode.MERGED, reason = "withProjectLibrary")
)
}
internal fun withProjectLibraries(libraryNames: List<String>) {
for (libraryName in libraryNames) {
includedProjectLibraries.add(
ProjectLibraryData(libraryName = libraryName, packMode = LibraryPackMode.MERGED, reason = "withProjectLibrary")
)
}
}
fun withProjectLibraries(libraryNames: Iterable<String>) {
@@ -213,6 +213,16 @@ internal suspend fun createPlatformLayout(addPlatformCoverage: Boolean,
layout.withProjectLibrary(libraryName = "ktor-client-logging")
layout.withProjectLibrary(libraryName = "ktor-serialization-kotlinx-json")
// https://jetbrains.team/p/ij/reviews/67104/timeline
// https://youtrack.jetbrains.com/issue/IDEA-179784
// https://youtrack.jetbrains.com/issue/IDEA-205600
layout.withProjectLibraries(listOf(
"javax.annotation-api",
"javax.activation",
"jaxb-runtime",
"jaxb-api",
))
// used by intellij.database.jdbcConsole - put to a small util module
layout.withProjectLibrary(libraryName = "jbr-api", jarName = UTIL_JAR)
// platform-loader.jar is loaded by JVM classloader as part of loading our custom PathClassLoader class - reduce file size
@@ -67,10 +67,6 @@
<orderEntry type="library" name="netty-codec-http" level="project" />
<orderEntry type="library" name="jackson" level="project" />
<orderEntry type="library" name="Java Compatibility" level="project" />
<orderEntry type="library" scope="RUNTIME" name="javax.activation" level="project" />
<orderEntry type="library" scope="RUNTIME" name="jaxb-api" level="project" />
<orderEntry type="library" scope="RUNTIME" name="jaxb-runtime" level="project" />
<orderEntry type="library" scope="RUNTIME" name="javax.annotation-api" level="project" />
<orderEntry type="library" name="kotlin-reflect" level="project" />
<orderEntry type="module" module-name="intellij.platform.objectSerializer" scope="RUNTIME" />
<orderEntry type="library" name="jackson-databind" level="project" />