#gradle #cleanup #utilities #android

app gradle-wiper

Reclaim machine resources (RAM, Disk) attached to Gradle builds

1 unstable release

0.1.0 Apr 29, 2024

#960 in Command line utilities

Download history 151/week @ 2024-04-29

151 downloads per month

MIT license

56KB
1K SLoC

Rust 1K SLoC // 0.0% comments Shell 130 SLoC // 0.1% comments

gradle-wiper

rustfmt DeepSource CI Crates.io License

Easily reclaim machine resources (RAM, Disk) taken by Gradle builds

gradle-wiper is a clean-up utility for all users building with the Gradle build tool.

It's a fast, modern and ergonomic alternative for existing tools like deep-clean, AndroidDaemonKiller and others.

Like these tools, gradle-wiper might be useful in situations where build executions consistently fail even after trying all sort of tricks or when you don't want to pay to price of restarting your work machine to be in a clean state of your system.

Installing

Installing from crates.io

cargo install gradle-wiper

More installation methods to come! Stay tuned! 🔥

Using

[!NOTE] This tool does not uninstall any existing software from your system, and it also preserves custom configuration hosted at $HOME/.gradle, like $HOME/.gradle/gradle.properties file and $HOME/.gradle/init.d build scripts

gradle-wiper provides a small command-line interface, allowing shallow and deep cleaning modes.

To wipe out all build-related Daemons (Gradle Workers, Kotin compiler, etc.) from you RAM memory:

gradle-wiper ram shallow

To wipe out all JVM processes from your RAM memory (including running IDEs):

gradle-wiper ram deep

To wipe out potentially corrupted build caches from disk, including:

  • $HOME/.gradle/caches
  • $HOME/.gradle/configuration-cache

along with

  • Maven dependency caches ($HOME/.m2)
  • Konan dependency caches ($HOME/.konan)
  • Logs from Gradle builds ($HOME/.gradle/daemon)
  • Gradle temporary files ($HOME/.gradle/.tmp)
  • All build output folders from any Gradle projects in your system
gradle-wiper disk shallow

To also scan your disk for Gradle/IDE metadata files per project, removing

  • all <my-project>/.gradle/* Gradle files/caches
  • all <my-project>/.idea/* IDE metadata files/caches
gradle-wiper disk deep

License

Copyright (c) 2024 - Dotanuki Labs - The MIT license

Dependencies

~8–38MB
~585K SLoC