Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions ci/templates/html-library-template/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension

plugins {
kotlin("multiplatform")
kotlin("plugin.compose")
Expand All @@ -14,7 +11,7 @@ repositories {
}

kotlin {
js(IR) {
js {
browser()
binaries.executable()
}
Expand All @@ -24,8 +21,8 @@ kotlin {
resources.srcDir("src/main/resources")

dependencies {
implementation(compose.web.core)
implementation(compose.runtime)
implementation(libs.compose.html.core)
implementation(libs.compose.runtime)
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions ci/templates/html-library-template/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[versions]
compose = "1.9.0"

[libraries]
compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "compose" }
compose-html-core = { module = "org.jetbrains.compose.html:html-core", version.ref = "compose" }
8 changes: 4 additions & 4 deletions ci/templates/multiplatform-template/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ kotlin {
sourceSets {
named("commonMain") {
dependencies {
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(libs.compose.runtime)
api(libs.compose.foundation)
api(libs.compose.material)
// Needed only for preview.
implementation(compose.preview)
implementation(libs.compose.ui.tooling.preview)
}
}
named("androidMain") {
Expand Down
8 changes: 8 additions & 0 deletions ci/templates/multiplatform-template/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[versions]
compose = "1.9.0"

[libraries]
compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "compose" }
compose-foundation = { module = "org.jetbrains.compose.foundation:foundation", version.ref = "compose" }
compose-material = { module = "org.jetbrains.compose.material:material", version.ref = "compose" }
compose-ui-tooling-preview = { module = "org.jetbrains.compose.ui:ui-tooling-preview", version.ref = "compose" }
4 changes: 2 additions & 2 deletions components/AnimatedImage/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ kotlin {
}
}
commonMain.dependencies {
api(compose.runtime)
api(compose.foundation)
api(libs.compose.runtime)
api(libs.compose.foundation)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/SplitPane/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ kotlin {
}

commonMain.dependencies {
api(compose.runtime)
api(compose.foundation)
api(libs.compose.runtime)
api(libs.compose.foundation)
}
}
}
Expand Down
10 changes: 9 additions & 1 deletion components/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ androidx-activity-compose = "1.8.2"
androidx-test = "1.5.0"
androidx-compose = "1.6.1"
kotlinx-browser = "0.5.0"
compose = "1.9.0"
material3 = "1.9.0-beta03"

[libraries]
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
Expand All @@ -18,4 +20,10 @@ androidx-compose-ui-test = { module = "androidx.compose.ui:ui-test", version.ref
androidx-compose-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "androidx-compose" }
androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "androidx-compose" }
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "androidx-compose" }
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview", version.ref = "androidx-compose" }
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview", version.ref = "androidx-compose" }
compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "compose" }
compose-foundation = { module = "org.jetbrains.compose.foundation:foundation", version.ref = "compose" }
compose-desktop = { module = "org.jetbrains.compose.desktop:desktop", version.ref = "compose" }
compose-ui-test = { module = "org.jetbrains.compose.ui:ui-test", version.ref = "compose" }
material-icons-core = { module = "org.jetbrains.compose.material:material-icons-core", version = "1.7.3" }
material3 = { module = "org.jetbrains.compose.material3:material3", version.ref = "material3" }
12 changes: 4 additions & 8 deletions components/resources/demo/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ kotlin {
val wasmJsMain by getting

commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.material3)
implementation("org.jetbrains.compose.material:material-icons-core:1.7.3")
implementation(libs.compose.runtime)
implementation(libs.material3)
implementation(libs.material.icons.core)
implementation(project(":resources:library"))
}
desktopMain.dependencies {
implementation(compose.desktop.common)
implementation(libs.compose.desktop)
}
androidMain.dependencies {
implementation(libs.androidx.ui.tooling)
Expand Down Expand Up @@ -87,10 +87,6 @@ android {
}
}

compose.experimental {
web.application {}
}

//because the dependency on the compose library is a project dependency
compose.resources {
generateResClass = always
Expand Down
9 changes: 4 additions & 5 deletions components/resources/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,17 @@ kotlin {

val commonMain by getting {
dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(libs.compose.runtime)
implementation(libs.compose.foundation)
implementation(libs.kotlinx.coroutines.core)
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation(libs.kotlinx.coroutines.test)
implementation(compose.material3)
@OptIn(ExperimentalComposeLibrary::class)
implementation(compose.uiTest)
implementation(libs.material3)
implementation(compose.ui.test)
}
}
val blockingMain by creating {
Expand Down
6 changes: 3 additions & 3 deletions components/ui-tooling-preview/demo/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ kotlin {

sourceSets {
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.material3)
implementation(libs.compose.runtime)
implementation(libs.material3)
implementation(project(":ui-tooling-preview:library"))
}
val desktopMain by getting
desktopMain.dependencies {
implementation(compose.desktop.common)
implementation(libs.compose.desktop)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions tutorials/HTML/Getting_Started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ kotlin {
sourceSets {
val jsMain by getting {
dependencies {
implementation(compose.html.core)
implementation(compose.runtime)
implementation("org.jetbrains.compose.html:html-core:1.9.0")
implementation("org.jetbrains.compose:compose-runtime:1.9.0")
}
}
}
Expand Down