I've created a custom task in the project's build.gradle file like so:
task buildAllForAppRelease {
dependsOn(':clean', 'app:assembleDebug', ':clean', 'app:assembleRelease', 'app:bundleRelease')
}
The apks and bundles are all built, but the clean task doesn't seem to do anything. It shows up in the build output but no files are getting deleted.
When I run the clean task directly, it does what it is supposed to do.
How can I ensure, that clean task is actually run before the other tasks?
Btw. I've set org.gradle.paralell=true
, but that shouldn't have an influence, does it?