Fail
06/24/2019, 2:06 PMbuildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.squareup.sqldelight:gradle-plugin:1.1.3'
}
}
...
apply plugin: 'com.squareup.sqldelight'
sqldelight {
MyDatabase {
packageName = "ru.mybase.database"
sourceFolders = ["sqldelight"]
}
}
...
kotlin {
...
SourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "com.squareup.sqldelight:runtime-metadata:1.1.3"
}
}
...
All compiled and worked.
3. Add kotlinx serialization:
buildscript {
...
dependencies {
--> classpath "org.jetbrains.kotlin:kotlin-serialization:1.3.40"
classpath 'com.squareup.sqldelight:gradle-plugin:1.1.3'
}
}
...
apply plugin: 'kotlinx-serialization'
...
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:0.11.1"
...
And we have error:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.squareup.sqldelight:runtime-jvm:1.1.3.
After removing serialization plugin the error remains.
Tested with enableFeaturePreview("GRADLE_METADATA") and without.yshrsmz
06/24/2019, 2:26 PMFail
06/24/2019, 2:27 PMyshrsmz
06/24/2019, 2:27 PMyshrsmz
06/24/2019, 2:28 PMFail
06/24/2019, 2:28 PMyshrsmz
06/24/2019, 2:31 PMFail
06/24/2019, 2:37 PMyshrsmz
06/24/2019, 3:03 PMruntime
artifact dependncy should be automatically added by the sqldelight plugin
(though it wont resolve the problem🤔)
Also, can you provide complete build.gradle?Fail
06/24/2019, 3:04 PMBenjamin Charais
06/24/2019, 6:12 PMconfigurations {
compileClasspath
}
Is this in your build gradle? It’s a work around, I’m trying to find the issue, but surprisingly am having a hard time at the momentBenjamin Charais
06/24/2019, 6:13 PMBenjamin Charais
06/24/2019, 6:16 PM0.11.0
and had to move to 0.10.0
for my implementationcoletz
06/25/2019, 9:45 PM