You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SqlDelight does not place generated source in a folder named after the variant if there is only one variant enabled. This causes the output location to be unstable and can result in writing the database class multiple times, which then conflict with eachother.
Reproducible in Gradle 8.1.1 and AGP 8.0 as well, I just put down the versions we are currently using in the project which exhibits this behavior regularly.
Stacktrace
No response
Gradle Build Script
No response
The text was updated successfully, but these errors were encountered:
SQLDelight Version
1.5.5
Operating System
macOS
Gradle Version
7.5
Kotlin Version
1.8.10
Dialect
Sqlite
AGP Version
7.3.1
Describe the Bug
SqlDelight does not place generated source in a folder named after the variant if there is only one variant enabled. This causes the output location to be unstable and can result in writing the database class multiple times, which then conflict with eachother.
sqldelightbug.zip
In the attached reproducer project, run the following:
./gradlew assembleDebug -PdebugOnly=true && ./gradlew assembleRelease -PdebugOnly=false && ./gradlew assembleDebug -PdebugOnly=true
The first two assemble tasks will succeed, but the third will fail with an error:
e: file:///Users/jfriend/Development/sqldelightbug/app/build/generated/sqldelight/code/Database/com/example/sqldelightbug/Database.kt:8:18 Redeclaration: Database
Reproducible in Gradle 8.1.1 and AGP 8.0 as well, I just put down the versions we are currently using in the project which exhibits this behavior regularly.
Stacktrace
No response
Gradle Build Script
No response
The text was updated successfully, but these errors were encountered: