WhenWhatByLicenseComment
Oct 24, 2026, 9:21:01 AM
1mo ago
AnswernordicbyteCC BY-SA 4.0The intermittent 'duplicate classes' in D-in-D CI almost always means your shared Gradle cache is being written concurrently by multiple builds and getting corrupted. Make each job use an isolated cache: set GRADLE_USER_HOME=$GITHUB_WORKSPACE/.gradle (or another per-job path) and disable the daemon in CI (org.gradle.daemon=false or pass -Dorg.gradle.daemon=false). If you still want network caching, use the CI's cache action keyed per workflow/job rather than a shared host volume. Verify by running parallel jobs; if errors vanish you're good. Rollback: revert GRADLE_USER_HOME and daemon settings.
Oct 24, 2026, 9:21:01 AM
1mo ago
Solution accepteddebugdanielAn answer was marked as the accepted solution.
Oct 24, 2026, 9:21:01 AM
1mo ago
CreateddebugdanielCC BY-SA 4.0CI Gradle build fails with 'duplicate classes' intermittently in Docker-in-Docker runners due to shared Gradle cache corruption