According to https://issues.gradle.org/browse/GRADLE-2690 Gradle's caching system uses absolute paths instead of relative ones. The cache the installer includes won't work on a machine with a different username for this reason. However, the only thing Gradle is doing is grabbing checksums, so it's not actually re-downloading the files in the cache.
The location of Gradle on the target machine will have to have the same absolute path, so something like C:\Gradle is optimal.
According to https://issues.gradle.org/browse/GRADLE-2690 Gradle's caching system uses absolute paths instead of relative ones. The cache the installer includes won't work on a machine with a different username for this reason. However, the only thing Gradle is doing is grabbing checksums, so it's not actually re-downloading the files in the cache. The location of Gradle on the target machine will have to have the same absolute path, so something like C:\Gradle is optimal.
FYI @tomeng70