Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
New
Description
We have several tasks that only have inputs and no outputs. For incremental builds, this means that they are only re-run if:
- the inputs change,
- --rerun-tasks is given on command line.
Gradle has a built-in rule for "cleaning" the outputs of a task - a "clean[TaskName]" rule, so in theory you could clean the outputs of a single task and re-run the entire build with only that task being re-run. It would be sometimes convenient.
We could add a dummy output to these tasks instead of upToDateWhen (for example, touch an empty file at the end of the task's execution). Then cleanXXX should work for them (and so would incremental builds).
Attachments
Issue Links
- is related to
-
LUCENE-9077 Gradle build
- Closed
- links to