Browse Source

Add material3, mark some libraries as Experiemental (#1390)

Checked it on the version 0.0.0-feature-material3-build460

Fixes https://github.com/JetBrains/compose-jb/issues/1335
try_template_with_1.6.0-rc2
Igor Demin 3 years ago committed by GitHub
parent
commit
db44cc8779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      compose/build.gradle.kts
  2. 4
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt
  3. 5
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ExperimentalComposeLibrary.kt

1
compose/build.gradle.kts

@ -32,6 +32,7 @@ tasks.register("publishComposeJb") {
":compose:foundation:foundation",
":compose:foundation:foundation-layout",
":compose:material:material",
":compose:material3:material3",
":compose:material:material-icons-core",
":compose:material:material-ripple",
":compose:runtime:runtime",

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

@ -159,8 +159,11 @@ class ComposePlugin : Plugin<Project> {
val animation get() = composeDependency("org.jetbrains.compose.animation:animation")
val foundation get() = composeDependency("org.jetbrains.compose.foundation:foundation")
val material get() = composeDependency("org.jetbrains.compose.material:material")
@ExperimentalComposeLibrary
val material3 get() = composeDependency("org.jetbrains.compose.material3:material3")
val runtime get() = composeDependency("org.jetbrains.compose.runtime:runtime")
val ui get() = composeDependency("org.jetbrains.compose.ui:ui")
@ExperimentalComposeLibrary
val uiTestJUnit4 get() = composeDependency("org.jetbrains.compose.ui:ui-test-junit4")
val uiTooling get() = composeDependency("org.jetbrains.compose.ui:ui-tooling")
val preview get() = composeDependency("org.jetbrains.compose.ui:ui-tooling-preview")
@ -186,6 +189,7 @@ class ComposePlugin : Plugin<Project> {
}
object DesktopComponentsDependencies {
@ExperimentalComposeLibrary
val splitPane = composeDependency("org.jetbrains.compose.components:components-splitpane")
}

5
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ExperimentalComposeLibrary.kt

@ -0,0 +1,5 @@
package org.jetbrains.compose
// We write explicitly about OptIn, because IDEA doesn't suggest it.
@RequiresOptIn("This library is experimental and can be unstable. Add @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class) annotation.")
annotation class ExperimentalComposeLibrary
Loading…
Cancel
Save