Validation tasks are common in Gradle builds (e.g., schema checks, linting, consistency checks). They often do not produce meaningful artifacts, but you still want them to:
- ❌ Not participate in the build cache
- ✅ Avoid re-running when nothing has changed
These two goals require two separate mechanisms in Gradle.