Slackbot
01/17/2024, 9:22 AMThomas Broyer
01/17/2024, 9:59 AMTaskExecutionGraphListener to project.getGradle().getTaskGraph() and check for the presence of both tasks in the task execution graph.
But first make sure it's compatible with configuration cache (https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:requirements:build_listeners is not clear to me)Vampire
01/17/2024, 9:59 AMVampire
01/17/2024, 9:59 AMVampire
01/17/2024, 10:00 AMtaskGraph.whenReady is not CC safe, also not sure about that right nowThomas Broyer
01/17/2024, 10:03 AMVampire
01/17/2024, 10:06 AMgradle.taskGraph.whenReady {
check(!(hasTask("a") && hasTask("b"))) {
"Task 'a' and 'b' cannot be executed together."
}
}