gradle-wiper

Crates.iogradle-wiper
lib.rsgradle-wiper
version0.1.0
sourcesrc
created_at2024-04-29 10:57:31.181608
updated_at2024-04-29 10:57:31.181608
descriptionReclaim machine resources (RAM, Disk) attached to Gradle builds
homepage
repositoryhttps://github.com/dotanuki-labs/gradle-wiper
max_upload_size
id1224080
size334,577
Ubiratan Soares (ubiratansoares)

documentation

README

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

Commit count: 81

cargo fmt