Skip to content

Commit

Permalink
Use Gradle typesafe project accessors
Browse files Browse the repository at this point in the history
And update the root project name
  • Loading branch information
mahozad committed Jul 12, 2024
1 parent 71d845f commit f50bc87
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
rootProject.name = "wavy-slider"
rootProject.name = "wavy-slider-project"

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

include(":library")
project(":library").name = "wavy-slider"
Expand Down
2 changes: 1 addition & 1 deletion showcase/androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ kotlin {
androidTarget()
sourceSets {
androidMain.dependencies {
implementation(project(":showcase:shared"))
implementation(projects.showcase.shared)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion showcase/desktopApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kotlin {
sourceSets {
jvmMain.dependencies {
implementation(compose.desktop.currentOs)
implementation(project(":showcase:shared"))
implementation(projects.showcase.shared)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion showcase/jsApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kotlin {
jsMain.dependencies {
implementation(compose.html.core)
implementation(compose.runtime)
implementation(project(":showcase:shared"))
implementation(projects.showcase.shared)
}
}
}
4 changes: 2 additions & 2 deletions showcase/shared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl

plugins {
alias(libs.plugins.kotlin.multiplatform)
Expand Down Expand Up @@ -47,7 +47,7 @@ kotlin {
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.components.resources)
// api("ir.mahozad.multiplatform:wavy-slider:x.y.z")
api(project(":wavy-slider"))
api(projects.wavySlider)
}
androidMain.dependencies {
api(libs.androidx.activity.compose)
Expand Down
2 changes: 1 addition & 1 deletion showcase/wasmApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kotlin {
val wasmJsMain by getting {
dependencies {
implementation(compose.runtime)
implementation(project(":showcase:shared"))
implementation(projects.showcase.shared)
}
}
}
Expand Down

0 comments on commit f50bc87

Please sign in to comment.