I have a task that checks that all i18n properties defined in a properties files are actually used somewhere. It needs to be run only if any of the source files or the properties files have changed. However, when I only specify these files as the tasks ‘inputs’ the task runs even if none of them has changed. If I also specify them as ‘outputs’, the task recognizes that it is up-to-date.
I would rather not artificially specify the input files as ‘outputs’.
It seems it would be useful to have the task consider itself up-to-date when no input files have changed if no other criteria are given.
Is there a way to work around this, for example using the upToDateWhen closure to check whether the inputs have changed. (I looked at the javadoc but didn’t see any methods on the TaskInputs object to do that).