Hi, noob question, I have a gradle task that creat...
# caching
t
Hi, noob question, I have a gradle task that creates an executable file. Is it good practice to set the executable file as output. My intention is to store this output in develocity so next time the task runs, we can get the executable file from develocity
1
v
You should always specify all inputs and outputs of a task. If you do not define inputs and outputs neither up-to-date checks nor task output caching can work. If you only declare the output, but no inputs, or not all inputs, that would actually be very bad, because then the up-to-date check would assume the output is up-to-date even if inputs changed and the task output cache would not deliver correct results.
t
Yes of course, thanks!
👌 2