Describe the bug
I'm trying to add ksp and room in my CMP project, but I always get the error from title when trying to add "dependencies { ... }" in build.gradle.kts
Affected platforms
Desktop (Windows, Linux, macOS)
iOS
Versions
Libraries:
Compose Multiplatform version:1.6.10
ksp version: 2.0.0-1.0.21
room version: 2.7.0-alpha02
Kotlin version: 2.0.0
To Reproduce
Steps to reproduce the behavior:
Add room and ksp configuration in libs.version.toml:
**Expected behavior**
Sync gradle without failure
**Additional context**
I could not find a proper setup tutorial for CMP, so I took [Google's Frutties KMP Sample](https://github.com/android/kotlin-multiplatform-samples/tree/main/Fruitties) as reference, so I guess it's just a miss configuration from my part.
I have tried to place the "dependencies" block outside and inside "kotlin" block in build.gradle.kts, but it didn't work.
Describe the bug I'm trying to add ksp and room in my CMP project, but I always get the error from title when trying to add "dependencies { ... }" in build.gradle.kts
Affected platforms
Versions
To Reproduce Steps to reproduce the behavior:
[libraries] ... room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room"} room-runtimme = { group = "androidx.room", name = "room-runtime", version.ref = "room"}
[plugins] ... ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } room = { id = "androidx.room", version.ref = "room" }
plugins { ... alias(libs.plugins.ksp) alias(libs.plugins.room) }
kotlin { ... sourceSets { ... commonMain.dependencies { ... implementation(libs.room.runtime) } } }
room { schemaDirectory("$projectDir/schemas") }