Hey guys :wave: I applied the SQLDelight plugin in...
# squarelibraries
n
Hey guys 👋 I applied the SQLDelight plugin in a shared module of a KMP project with no database set-up and just the sqlite link:
Copy code
sqldelight {
    linkSqlite = true
}
This worked with the 2.1.0 jetbrains plugin with a warning in build logs:
Copy code
SQLDelight Gradle plugin was applied but there are no databases set up.
After updating the plugin to the 2.2.1 version, it fails with a Collection is empty NoSuchElementException (stacktrace in 🧵) I tried both 2.1.0 and 2.2.1 gradle plugin version with the same result. Is it the expected result or is it a regression from the 2.1.0 version ? Thank you!
Copy code
java.util.NoSuchElementException: Collection is empty.
	at kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:208)
	at app.cash.sqldelight.gradle.SqlDelightPlugin$PropertiesModelBuilder.buildAll(SqlDelightPlugin.kt:144)
	at org.gradle.tooling.provider.model.internal.DefaultToolingModelBuilderRegistry$BuilderWithNoParameter.build(DefaultToolingModelBuilderRegistry.java:268)
...
113 Views