From 951b572d30316b22ef58c128c49a6d456e8fc610 Mon Sep 17 00:00:00 2001
From: Nikolay Rykunov <nikolay.rykunov@jetbrains.com>
Date: Tue, 3 Oct 2023 19:28:38 +0200
Subject: [PATCH] Include only foundation-desktop in the published library

---
 core/build.gradle.kts               | 8 +++++---
 samples/ide-plugin/build.gradle.kts | 3 +++
 samples/standalone/build.gradle.kts | 3 +++
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index ad3b594bc..f0a74b272 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -1,3 +1,5 @@
+import org.jetbrains.compose.ComposeBuildConfig
+
 plugins {
     jewel
     `jewel-publish`
@@ -5,8 +7,8 @@ plugins {
     alias(libs.plugins.kotlinSerialization)
 }
 
+private val composeVersion get() = ComposeBuildConfig.composeVersion
+
 dependencies {
-    api(compose.desktop.currentOs) {
-        exclude(group = "org.jetbrains.compose.material")
-    }
+    api("org.jetbrains.compose.foundation:foundation-desktop:$composeVersion")
 }
diff --git a/samples/ide-plugin/build.gradle.kts b/samples/ide-plugin/build.gradle.kts
index 3a26f937e..8ace71a8f 100644
--- a/samples/ide-plugin/build.gradle.kts
+++ b/samples/ide-plugin/build.gradle.kts
@@ -22,4 +22,7 @@ repositories {
 
 dependencies {
     implementation(projects.ideLafBridge)
+    implementation(compose.desktop.currentOs) {
+        exclude(group = "org.jetbrains.compose.material")
+    }
 }
diff --git a/samples/standalone/build.gradle.kts b/samples/standalone/build.gradle.kts
index 320666bc5..f7651827e 100644
--- a/samples/standalone/build.gradle.kts
+++ b/samples/standalone/build.gradle.kts
@@ -9,6 +9,9 @@ plugins {
 
 dependencies {
     implementation(projects.intUi.intUiStandalone)
+    implementation(compose.desktop.currentOs) {
+        exclude(group = "org.jetbrains.compose.material")
+    }
 }
 
 compose.desktop {