Slackbot
04/19/2022, 7:32 PMtony
04/19/2022, 7:35 PM./gradlew tasks
do this?tony
04/19/2022, 7:35 PMtasks
task?Zak Taccardi
04/19/2022, 7:36 PMZak Taccardi
04/19/2022, 7:36 PM// in root `build.gradle.kts`
val configureAllTasks = tasks.register<Task>("configureAllTasks")
allprojects {
configureAllTasks.configure {
dependsOn(tasks.named("tasks"))
}
}
I tried the above, but I got BUILD_SUCCESSFUL
grossws
04/19/2022, 7:39 PMtasks.all { .. }
or tasks.forEach { .. }
should do. If you want a it to be switchable -- hide it behind gradle property existence for example with if (providers.gradleProperty("blah").isPresent()) { .. }
.Zak Taccardi
04/19/2022, 7:40 PM:featureSpoonDebugAndroidTest
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':featureSpoonDebugAndroidTest'.
> Task with path ':feature:feature-ui:spoonDebugAndroidTest' not found in root project 'my-app'.
It groups Spoon
tasks for a feature across multiple subprojects. However, we’ve removed Spoon support already, but I missed this error bc CI stopped invoking :featureSpoonDebugAndroidTest
.
I forgot to remove the code that registers :featureSpoonDebugAndroidTest
- and I want CI to catch thisZak Taccardi
04/19/2022, 7:54 PMephemient
04/19/2022, 7:55 PMZak Taccardi
04/19/2022, 7:56 PMephemient
04/19/2022, 7:57 PMpublish
with missing credentials definitely fails even with --dry-run
though, it's not a matter of failing at executionZak Taccardi
04/19/2022, 7:59 PMZak Taccardi
04/19/2022, 8:00 PMZak Taccardi
04/19/2022, 8:02 PM./gradlew task1
./gradlew task2
with lazy configuration, does :task2
necessarily benefit from the configuration cached from the invocation of :task1
?Zak Taccardi
04/19/2022, 8:03 PMgrossws
04/19/2022, 8:05 PMtasks.all
with some task like help
or tasks
. I don't see if separate API for it is viable.CristianGM
04/19/2022, 10:28 PM./gradlew task1
and ./gradlew task2
don't share anythingVampire
04/19/2022, 10:31 PMgw task1
and gw task1 task2
afairephemient
04/19/2022, 10:31 PM./gradlew configureAllTasks
and ./gradlew oneSpecificTask
, nor will ./gradlew task1
and ./gradlew t1
(abbreviation) afaik. I thought there was a ticket tracking that last bit but I can't find itVampire
04/19/2022, 10:34 PMGradle does not have an easy to use API
What is hard to use with
allprojects.each { tasks.all { } }
?Vampire
04/19/2022, 10:35 PMephemient
04/19/2022, 10:37 PM./gradlew --dry-run <list of all task names>
, but that fails on `publish`…Vampire
04/19/2022, 10:37 PM