I have a task which I’d like to reuse in a few child modules within a project. All works well, but inputs and outputs are tricky. One project generates output of foo.exe and another project generates bar.exe.
but that doesn’t seem to work right. I guess gradle doesn’t know which files are missing if it doesn’t know while files to look for.
outputs.files “foo.exe”, “bar.exe”
But that doesn’t seem right, since there will always be something missing in each project.
If there a better solution to this? Do I need to resort to turning this task into a plugin and then passing to it the appropriate outputs?