From 2cd92eed5cf407f7d483d79365dd6f7b463ff6f5 Mon Sep 17 00:00:00 2001 From: Nikita Lipsky Date: Fri, 24 Feb 2023 14:37:23 +0200 Subject: [PATCH] Add resources library to dependencies declared by compose gradle plugin (#2793) * Add resources library to compose dependencies declared by compose gradle plugin * Move resources component to CommonComponentsDependencies --- .../src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt index 3b04381aad..0997f30a51 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt @@ -121,6 +121,7 @@ class ComposePlugin : Plugin { val uiTooling get() = composeDependency("org.jetbrains.compose.ui:ui-tooling") val preview get() = composeDependency("org.jetbrains.compose.ui:ui-tooling-preview") val materialIconsExtended get() = composeDependency("org.jetbrains.compose.material:material-icons-extended") + val components get() = CommonComponentsDependencies val web: WebDependencies get() = WebDependencies } @@ -149,6 +150,11 @@ class ComposePlugin : Plugin { val auto get() = forKotlin(project.getKotlinPluginVersion()) } + object CommonComponentsDependencies { + @ExperimentalComposeLibrary + val resources = composeDependency("org.jetbrains.compose.components:components-resources") + } + object DesktopComponentsDependencies { @ExperimentalComposeLibrary val splitPane = composeDependency("org.jetbrains.compose.components:components-splitpane")