Strange errors with sqldelight>
Case:
1. Create new multiplatform (Android/IOS) project.
2. Add sqldelight: create folder, add plugin to gradle:
buildscript {
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.