Gradle build cache: stale entry detection for externally modified files
Goal: Ensure build cache invalidates when files change outside declared inputs. In many projects, external tools or manual edits modify files that are normally outputs of a Gradle task. Since the build cache only hashes declared task inputs, these external changes are invisible to Gradle, leading to stale artifacts being reused. Constraints: Gradle’s current