This project demonstrates the problem with configuration cache and lazily configured task inputs.
Run the command:
./gradlew consumerTask
It will fail with error:
/{path_to_project}/producer.txt (No such file or directory)
If we disable the configuration cache in gradle.properties, then everything works fine.