Is there any way to override Gradle’s check for task history and always trust the result of ‘outputs.upToDateWhen’?
We have some tasks that execute some long-running database initialization scripts. These tasks have a simple query in the ‘outputs.upToDateWhen’ configuration. This works great to skip the tasks most of the time.
However, when developers first checkout the project from version control, the database init tasks always run on the first build because ‘No history is available for task’ even though the database is usually already initialized.