https://kotlinlang.org logo
Title
r

Rak

11/16/2021, 4:41 PM
Hi, if i create a kmm shared library as a separate project, then I won’t have a root build.gradle.kts file with a
buildscript
block. I need one to get the sqldelight plugin to work. What is the workaround?
g

Grégory Lureau

11/16/2021, 4:46 PM
why not using sqldelight in the kmm project directly ?
r

Rak

11/16/2021, 4:47 PM
I am
g

Grégory Lureau

11/16/2021, 4:48 PM
Then what's your problem? In the "separate project" you'll have the build.gradle that is configuring your sqldelight.
You can probably add a buildscript block on top of your build.gradle.kts of the KMM project.
🙌 1
r

Rak

11/16/2021, 4:52 PM
if i create a shared kmm library project I get one build.gradle.kts file
I add the plugin for sqldelight -
id("com.squareup.sqldelight")
and then i need to add the classpath dependencies which normally is in the root project which I don’t have