Skip to content

Releases: rock3r/deep-clean

1.6.0

30 Sep 15:12
Compare
Choose a tag to compare

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: 1.5.0...1.6.0

Version 1.5.0

01 Feb 17:37
8cac160
Compare
Choose a tag to compare
  • Only execute gradlew and adb commands when they're available

Version 1.4.0

26 Jul 12:26
84c0cbe
Compare
Choose a tag to compare
  • Add an option to nuke the IDE preferences: -p --ide-preferences (must be used in conjunction with -n --nuke)

Version 1.3.0

08 Jun 18:19
8455402
Compare
Choose a tag to compare
  • 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

Version 1.2.0

08 Jun 12:26
4f46fbe
Compare
Choose a tag to compare
  • 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

Version 1.1.1

06 Jun 18:24
e6b9acb
Compare
Choose a tag to compare
  • Renamed script from deep-clean to deep-clean.kts to avoid some issues with kscript

Version 1.1.0

06 Jun 16:52
c37665f
Compare
Choose a tag to compare
  • 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

Version 1.0.0

06 Jun 16:59
3463b97
Compare
Choose a tag to compare

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