Context: Trying to add configuration-cache support to a pre-existing plugin that wants to check didWork on another task (a jacoco report task)
Clayton Walker
05/30/2023, 5:52 PM
The solution might be to just remove the log message around getdidwork since presumably we can just use caching/up-to-dateness checking to run or not run.
v
Vampire
05/30/2023, 5:58 PM
If not, you probably need to have a shared build service that is registered as operation completion listener. It can then record the outcome of the task you are interested in and provide it to the task where you need it.
c
Clayton Walker
05/31/2023, 3:36 PM
I’ve had success using an operation completion listener