I started a new ktor project and i’m adding sqldel...
# ktor
a
I started a new ktor project and i’m adding sqldelight dependency but I’m getting the error:
Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
The project is just a single module build ( no top level buiild.gradle.kts file) How do i fix this?
b
Did you add mavenCentral to repositories block?
a
yes. Let me share you the snippet.
Here it is @Big Chungus
b
a
same issue @Big Chungus. I was wondering if the buildScript is supposed to be in another gradle file… ?
b
buildScript is actually deprecated since gradle 5
a
@Big Chungus changing
id("com.squareup.sqldelight")
to
id(“com.squareup.sqldelight”) version “1.5.3”
but don’t know why…
b
In that case, you can remove entire buildscript block. Looks like sqldelite supports new marker plugin publishing model