https://kotlinlang.org logo
#ktor
Title
# ktor
a

Alexander Suraphel

01/14/2022, 10:59 AM
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

Big Chungus

01/14/2022, 10:59 AM
Did you add mavenCentral to repositories block?
a

Alexander Suraphel

01/14/2022, 11:00 AM
yes. Let me share you the snippet.
Here it is @Big Chungus
b

Big Chungus

01/14/2022, 11:02 AM
a

Alexander Suraphel

01/14/2022, 11:05 AM
same issue @Big Chungus. I was wondering if the buildScript is supposed to be in another gradle file… ?
b

Big Chungus

01/14/2022, 11:14 AM
buildScript is actually deprecated since gradle 5
a

Alexander Suraphel

01/14/2022, 11:53 AM
@Big Chungus changing
id("com.squareup.sqldelight")
to
id(“com.squareup.sqldelight”) version “1.5.3”
but don’t know why…
b

Big Chungus

01/14/2022, 11:33 PM
In that case, you can remove entire buildscript block. Looks like sqldelite supports new marker plugin publishing model
5 Views