Demonstrates a failure of Gradle up-to-date checks, where renaming a non-related task can trigger tests re-execution:
- Run
./gradlew barJar --console=verbose
- tests are run - Repeat
./gradlew barJar --console=verbose
- everything up-to-date - Edit
build.gradle
, changingbaz123
task name tobaz1234
- note that
barJar
is not related to this task in any way
- note that
- Run
./gradlew barJar --console=verbose
- tests are re-run, although nothing related tobarJar
has changed
--info
logs show only
Task ':test' is not up-to-date because:
Task ':test' has additional actions that have changed