Is anyone using SQLDelight for Server (JVM), the i...
# server
f
Is anyone using SQLDelight for Server (JVM), the instructions on https://cashapp.github.io/sqldelight/jvm_postgresql/ don’t work with a recent version of kotlin gradle 7.3.3
h
SqlDelight and Gradle 7.3.3 work without problems for me: Kotlin Gradle DSL
Copy code
plugins {
    kotlin("jvm") version "1.6.10"
    id("com.squareup.sqldelight") version "1.5.3"
}

repositories {
    mavenCentral()
}

dependencies {
    val sqlDelight = "1.5.3"
    // Apache 2, <https://github.com/cashapp/sqldelight>
    api("com.squareup.sqldelight:coroutines-extensions:$sqlDelight")
    api("com.squareup.sqldelight:jdbc-driver:$sqlDelight")
    // Apache 2, <https://github.com/hfhbd/kotlinx-uuid>
    api("app.softwork:kotlinx-uuid-sqldelight:0.0.12")

    // Apache 2, <https://github.com/Kotlin/kotlinx-datetime>
    api("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")

    // BSD 2, <https://github.com/pgjdbc/pgjdbc>
    api("org.postgresql:postgresql:42.3.1")
}

sqldelight {
    database("SchemaDB") {
        dialect = "postgresql"
        packageName = "wipma.schema"
        deriveSchemaFromMigrations = true
        verifyMigrations = true
    }
}
f
ok cool thanks I’ll give that a go, it looks different from https://cashapp.github.io/sqldelight/jvm_postgresql/
I take it I can remove
Copy code
buildscript {
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath("com.squareup.sqldelight:gradle-plugin:1.5.3")
    }
}
h
Yeah, the sample from the docs uses Groovy
f
yeah that was what I was just thinking