Deep Clean Versions Save

When Gradle or the IDE let you down, just --nuke all them caches

1.6.0

1 year ago

It's been a while since I formally released a new version, so... here we are! The external contributions were actually already released in 2021, but I had forgotten to do a named release back then.

  • Compatible with KScript 4!
  • Added a small check to make sure the Gradle wrapper is available and show a nice error if not, instead of crashing
  • Ensured the script is committed as executable (thanks @diklimchuk) #10
  • Nuke now also clears local Maven repository (thanks @IslamSalah) #9

New Contributors

Full Changelog: https://github.com/rock3r/deep-clean/compare/1.5.0...1.6.0

1.5.0

3 years ago
  • Only execute gradlew and adb commands when they're available

1.4.0

5 years ago
  • Add an option to nuke the IDE preferences: -p --ide-preferences (must be used in conjunction with -n --nuke)

1.3.0

5 years ago
  • Fix bug in which directories weren't recursively traversed while searching for files and folders to delete
  • Added --not-recursive option to avoid folder recursion (see README)
  • Added --ide/-ide to also delete IDEA/Android Studio files such as .iml project files
    • It also deletes .idea folders if used in conjunction with --nuke/-n
  • Greatly improved console output, especially on ANSI terminals

1.2.0

5 years ago
  • Add -b/--backup option, which renames files instead of deleting them
  • Gradle home detection will check for existence of folder before attempting cleaning
  • Some tweaks and refactors

1.1.1

5 years ago
  • Renamed script from deep-clean to deep-clean.kts to avoid some issues with kscript

1.0.0

5 years ago

Initial release!

  • Two modes, regular and nuke.
  • Regular mode:
    1. Runs ./gradlew clean
    2. Tries to kill any lingering daemons/processes for Gradle, ADB, and the Kotlin compiler
    3. Removes any .gradle and build folders in the working folder
  • Nuke mode does all of the above, plus: 4. Clears any IntelliJ IDEA caches it can find 5. Clears any Android Studio caches it can find 6. Clears the Gradle home folder, ~/.gradle

1.1.0

5 years ago
  • More granular ~/.gradle cleaning
    • It won't nuke the whole folder anymore, but only these subfolders: build-scan-data, caches, daemon, wrapper
  • Copy tweaks here and there