@@ -519,6 +519,22 @@ func (c *SaveCmd) Run(ctx context.Context, metrics metricsClient) error {
519519
520520 // Build the list of tar sources: always include caches, plus wrapper
521521 // (if present), configuration-cache and convention build dirs.
522+ //
523+ // Other GRADLE_USER_HOME directories are intentionally excluded:
524+ // native/ - JNI libs for file-system watching and jansi; small,
525+ // auto-extracted from jars on first run, version-locked.
526+ // daemon/ - Daemon registry, logs, and pid files; ephemeral
527+ // per-process state that should not be shared.
528+ // notifications/ - Tracks "Welcome to Gradle" message display; trivial.
529+ // jdks/ - Auto-provisioned toolchain JDKs; CI images typically
530+ // pre-install JDKs, and these are large version-specific
531+ // downloads that don't benefit from per-commit caching.
532+ // build-scan-data/ - Unsent Develocity/Gradle Enterprise build scan data;
533+ // ephemeral, should not be shared across builds.
534+ // develocity/ - Develocity plugin cache; ephemeral per-build state.
535+ // enterprise/ - Legacy Gradle Enterprise plugin cache; same as above.
536+ // android/ - Android Gradle Plugin's SDK/NDK component metadata;
537+ // small, auto-populated from the installed SDK.
522538 projectDir , err := os .Getwd ()
523539 if err != nil {
524540 return errors .Wrap (err , "get working directory" )
0 commit comments