Browse Source

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
pull/2796/head
Nikita Lipsky 2 years ago committed by GitHub
parent
commit
2cd92eed5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt

6
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt

@ -121,6 +121,7 @@ class ComposePlugin : Plugin<Project> {
val uiTooling get() = composeDependency("org.jetbrains.compose.ui:ui-tooling") val uiTooling get() = composeDependency("org.jetbrains.compose.ui:ui-tooling")
val preview get() = composeDependency("org.jetbrains.compose.ui:ui-tooling-preview") val preview get() = composeDependency("org.jetbrains.compose.ui:ui-tooling-preview")
val materialIconsExtended get() = composeDependency("org.jetbrains.compose.material:material-icons-extended") val materialIconsExtended get() = composeDependency("org.jetbrains.compose.material:material-icons-extended")
val components get() = CommonComponentsDependencies
val web: WebDependencies get() = WebDependencies val web: WebDependencies get() = WebDependencies
} }
@ -149,6 +150,11 @@ class ComposePlugin : Plugin<Project> {
val auto get() = forKotlin(project.getKotlinPluginVersion()) val auto get() = forKotlin(project.getKotlinPluginVersion())
} }
object CommonComponentsDependencies {
@ExperimentalComposeLibrary
val resources = composeDependency("org.jetbrains.compose.components:components-resources")
}
object DesktopComponentsDependencies { object DesktopComponentsDependencies {
@ExperimentalComposeLibrary @ExperimentalComposeLibrary
val splitPane = composeDependency("org.jetbrains.compose.components:components-splitpane") val splitPane = composeDependency("org.jetbrains.compose.components:components-splitpane")

Loading…
Cancel
Save