Slackbot
10/21/2023, 11:03 AMGabriel Feo
10/22/2023, 1:23 AMtasks.named("thatTask") {
outputs.cacheIf { false }
outputs.upToDateWhen { false }
}Martin Benndrf
10/22/2023, 7:11 AMVampire
10/22/2023, 11:39 AMcacheIf, yes.
But the question is, whether really only cache is affected. If you run the task, then delete something in the .git directory and run the task again, is it up-to-date, it rerun properly?
If it is up-to-date, you might also need to disable up-to-date checks, but not with the upToDateWhen @Gabriel Feo mentioned. That is an abuse with drawbacks that was needed as work-around in older times. Nowadays your would use doNotTrackState() or @UntrackedTask. That would also disable both, up-to-date checking and caching.Vampire
10/22/2023, 7:09 PM.git for example not ignored by default