Vincent Williams
07/29/2020, 8:06 PMtasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
this is the default clean task. Does this need to look different for multi-module projects or will this work just fine?
maybe delete(rootProject.buildDir)
needs to be run on each buildDir? im not sure thoughgildor
07/30/2020, 3:32 AMVincent Williams
07/30/2020, 3:32 AMgildor
07/30/2020, 3:32 AMgildor
07/30/2020, 3:33 AMVincent Williams
07/30/2020, 3:34 AMgildor
07/30/2020, 3:34 AMVincent Williams
07/30/2020, 3:35 AMgildor
07/30/2020, 3:35 AMbuild
dirrectory, you just add your custom task as dependency to default clean
taskgildor
07/30/2020, 3:35 AMVincent Williams
07/30/2020, 3:35 AMgildor
07/30/2020, 3:35 AMgildor
07/30/2020, 3:36 AMVincent Williams
07/30/2020, 3:36 AMgildor
07/30/2020, 3:39 AMgildor
07/30/2020, 3:40 AMgildor
07/30/2020, 3:41 AMgildor
07/30/2020, 3:41 AMgildor
07/30/2020, 3:42 AMVincent Williams
07/30/2020, 3:43 AMgildor
07/30/2020, 3:51 AMHow would I run all those tasks simultaneouslyThis how Gradle works by default with all the tasks, if you do this:
./gradlew clean
. Gradle will check every module, if it has task clean and run it, if it doesn’t, nothing happen
If you do this: ./gradlew :some-module:clean
it will run clean task only on some-module, or ./gradlew :clean
it will run clean task only on root moduleVincent Williams
07/30/2020, 3:53 AM