Jorge Castillo
06/28/2021, 10:50 AMsqldelight
regarding Gradle caching? Seems that making kotlin compile depend on the generation task is causing wrong cached builds on my side.
tasks.withType<KotlinCompile> {
dependsOn("generateMainSubscriptionsDbInterface")
}
Having that in place then running ./gradlew clean build
a few times, files are generated fine the first time, then they are removed from second time on, and they don't get regenerated ever, neither by running the generation task manually. It only gets back to life after removing the .gradle/
dir. If I run the task manually after that, it generates the stuff again.
I've also observed that the idea plugin allows to generate automatically after editing .sq
files, but that is not enough for someone cloning the repo the first time or for someone not touching those files ever.
Thanks!