SQLDelight question… Has anyone been able to succe...
# squarelibraries
c
SQLDelight question… Has anyone been able to successfully run
generateSqlDelightSchema
with version
1.1.4
? It’s referenced in the readme but the task cannot be found, others have reported the issue without much traction so wondering if I’m missing something? https://github.com/square/sqldelight/issues/1400
This is the terminal output:
Copy code
CENGEL-CHI:conversations-repository cengel$ ./gradlew generateSqlDelightSchema

FAILURE: Build failed with an exception.

* What went wrong:
Task 'generateSqlDelightSchema' not found in root project 'Conversations Repository'.
I’ve also tried running it on the specific module with the same error as above.
d
try listing all available tasks for a module that has SQLDelight via
./gradlew module:tasks
. One of the tasks in my project is called
generateAndroidDebugDatabaseSchema
.
c
☝🏻 that seemed to do the trick, it looks like the task name in the readme is out of sync with the intended task
Mine ended up being
generateDebug<Databasename>DatabaseSchema
t
task names likely depend heavily on the project that it is being applied to. given that sqldelight it isn’t necessarily an android project only plugin, at a high level you would see
generate<Variant?><DatabaseName>DatabaseSchema
result with
generateFooDatabaseSchema
in a project that lacks variants (ie java-library or whatever else sqlDelight supports)
154 Views