43 lines
1009 B
Batchfile
43 lines
1009 B
Batchfile
@echo off
|
|
echo ================================
|
|
echo Gradle Cache Cleaner
|
|
echo ================================
|
|
echo.
|
|
|
|
set GRADLE_CACHE=C:\Users\Evan\.gradle\caches
|
|
|
|
echo Lokasi: %GRADLE_CACHE%
|
|
echo.
|
|
|
|
:: Caches build sementara
|
|
echo [1/5] Cleaning build cache...
|
|
rd /s /q "%GRADLE_CACHE%\build-cache-1" 2>nul
|
|
echo Done!
|
|
|
|
:: Module cache (redownload otomatis kalau dibutuhkan)
|
|
echo [2/5] Cleaning modules cache...
|
|
rd /s /q "%GRADLE_CACHE%\modules-2\files-2.1" 2>nul
|
|
echo Done!
|
|
|
|
:: Transform cache hasil konversi library
|
|
echo [3/5] Cleaning transforms cache...
|
|
rd /s /q "%GRADLE_CACHE%\transforms-3" 2>nul
|
|
echo Done!
|
|
|
|
:: Temporary junk files
|
|
echo [4/5] Cleaning junk/tmp files...
|
|
rd /s /q "%GRADLE_CACHE%\tmp" 2>nul
|
|
del /q "%GRADLE_CACHE%\*.lock" 2>nul
|
|
echo Done!
|
|
|
|
:: Journal logs gradle
|
|
echo [5/5] Cleaning journal logs...
|
|
rd /s /q "%GRADLE_CACHE%\journal-1" 2>nul
|
|
echo Done!
|
|
|
|
echo.
|
|
echo ================================
|
|
echo Selesai! Semua cache bersih.
|
|
echo ================================
|
|
echo.
|
|
pause |