This job pre-creates ~/.gradle, which is exactly what stops setup-gradle
relocating the Gradle User Home to D:\a\.gradle on Windows. The seed build
saves its cache entry rooted at D:\a\.gradle, and cache entries are
identified by key *and* by a version derived from the cache paths, so the
relocated Gradle User Home never matches: the job requests a byte-identical
key and still gets "no match found", then fails the --offline build.
The other Windows jobs in this workflow are unaffected, and the ubuntu leg
passes because Linux has no equivalent relocation.
Testing Gradle User Home relocation semantics is integration-level rather
than smoke-level behaviour, so run this job on Linux only.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>