Gábor Török
11/07/2024, 7:30 PMclean task, is there a way to do something similar but let's say with the recursive - prefix?
so each task would automatically have a recursive counterpart which runs the same task in the builds we include? like recursiveClean would clean the current build - but also call recursiveClean on all included builds. recursiveTest to run all the unit tests in all relevant builds, etc.
so far i have just been doing it manually for each task type, i hope there is a better solution:
tasks.register('recursiveTest') {
dependsOn test
project.gradle.includedBuilds.forEach { includedBuild ->
var recursiveBuildTask = includedBuild.task(':test')
dependsOn recursiveBuildTask
}
}Vampire
11/08/2024, 7:52 AMGábor Török
11/08/2024, 5:42 PMGábor Török
11/08/2024, 8:27 PM