From e0e6f1b4a46ca1c27ce1c13524ff11f75a2bed54 Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Fri, 25 Oct 2024 17:03:55 +0200 Subject: [PATCH] Force Skiko to 0.8.17 (#665) This Skiko version contains an important fix for memory usage. It is more recent than the version used by CMP 1.7.0 (0.8.15), but the CMP team assured us it is a binary-compatible change. As a result you should see greatly decreased memory usage and GC pressure in most scenarios, except when the ComposePanel size changes. That is a more complex fix which will require a number of changes across JBR and Compose, and will come in time. --- build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 3b39f4fec6..da4b8752ea 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,6 +22,20 @@ dependencies { sarif(projects.ui) } +// TODO remove this once the Skiko fix makes it into CMP 1.7.1 +allprojects { + configurations.all { + resolutionStrategy { + eachDependency { + if (requested.group == "org.jetbrains.skiko") { + useVersion("0.8.17") + because("Contains important memory usage fix") + } + } + } + } +} + tasks { // val mergeSarifReports by // registering(MergeSarifTask::class) {