https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Maurice Jouvet

08/27/2020, 1:27 PM
I have a weird issue: Task 'generateAndroidDebugDatabaseInterface'. Is given me this:
k

Kurt Renzo Acosta

08/27/2020, 1:29 PM
same here. it’s an issue and seems like the fix is in a snapshot build already. https://github.com/cashapp/sqldelight/issues/1894
m

Maurice Jouvet

08/27/2020, 1:37 PM
Yes you are right. thx a lot. How can I used the snapshot build, can't find it..
Hum I see the merge in the master branch, but I'm sorry, I don't know how to include that in my current project...
I'm stuck. 😅
s

saket

08/27/2020, 2:54 PM
You'll want to change the version to
1.5.0-SNAPSHOT
m

Maurice Jouvet

08/27/2020, 3:02 PM
Thank you so much!!!
Hum it's not working..
Not resolved.
s

saket

08/27/2020, 9:03 PM
m

Maurice Jouvet

08/27/2020, 9:17 PM
Hum thanks a lot for the example, but I tried the exact same thing and here the pb:
s

saket

08/27/2020, 9:22 PM
not the same, I don’t see the snapshot repository url in that list of searched locations
are you missing
maven {url '<https://oss.sonatype.org/content/repositories/snapshots>' }
in your
buildscript.repositories {}
block?
m

Maurice Jouvet

08/28/2020, 7:20 AM
Hum I have it since the begin. Here my buildscript. (at the root project)
Copy code
buildscript {
    repositories {
        google()
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath(Deps.android_gradle_plugin)
        classpath(Deps.SqlDelight.gradle)
        classpath("org.jetbrains.kotlin:kotlin-serialization:${Versions.kotlin}")

        classpath(kotlin("gradle-plugin", Versions.kotlin))
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build gradle files
    }
}

plugins {
    id("org.jlleitschuh.gradle.ktlint") version Versions.ktlint_gradle_plugin
}

allprojects {
    repositories {
        google()
        mavenCentral()
        jcenter()
        maven(url = "<https://kotlin.bintray.com/kotlinx>")
        maven(url = "<https://dl.bintray.com/ekito/koin>")
        maven(url = "<https://dl.bintray.com/touchlabpublic/kotlin>")
        maven(url = "<https://oss.sonatype.org/content/repositories/snapshots/>")
    }
}
Hum Ok I found it!! I put the mavec uri in the buildscript like you said. Don't know why the allprojects not working...
Thank you a lot.
s

saket

08/28/2020, 7:38 AM
for people still following this thread, SQLDelight 1.4.2 is out with a fix
🎉 2
m

Maurice Jouvet

08/28/2020, 7:42 AM
Yeah!!!