I am getting this warning: ```Overlapping outputs...
# caching
j
I am getting this warning:
Copy code
Overlapping outputs: Gradle does not know how file 'CHANGELOG.md' was created (output property 'outputFile'). Task output caching requires exclusive access to output paths to guarantee correctness (i.e. multiple tasks are not allowed to produce output in the same location).
The problem is one task is adding some lines to the changelog file, and another different task formats the changelog file. Is it not a valid use case? Should I open an issue? What if two different plugins use the changelog file? It would be impossible to make a task cacheable.
e
updating a file in place is not cacheable, no
👍 1
if the tasks have different input and output files, then they can be wired up like a pipeline and it'll all work
s
One task can get files as input, added stuff, create a new file in build folder. Pass that yo sort task. And sort task can have change log as output
👍 1