Using this tool
Overview
The general way to use this tool is
gradle-wiper <resource> <action> (-v | --verbose)where:
- resource:
diskorram - action:
evaluate(dry-run),shallow(wipe) ordeep(wipe)
For instance, to evaluate used disk space related to previous Gradle builds:
gradle-wiper disk evaluateYou should see something like:
╭───────────────────────────────┬────────────╮
│ What ┆ Total Size │
╞═══════════════════════════════╪════════════╡
│ Gradle Build Caches ┆ 4.41GiB │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Gradle Daemon Logs ┆ 343.67MiB │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Gradle JDK toolchains ┆ 307.02MiB │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Gradle Distributions ┆ 556.21MiB │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Gradle Temporary Files ┆ 124.47MiB │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Gradle platform-native caches ┆ 2.09MiB │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Gradle build-scans data ┆ 3.53MiB │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Maven local repository ┆ 536.22MiB │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Konan/KMP Caches ┆ 0B │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌┤
│ Build output files ┆ 1.01GiB │
╰───────────────────────────────┴────────────╯
Total resources (disk space) : 7.2GiBReclaiming resources
To wipe out all build-related Daemons (Gradle Workers, Kotin compiler, etc.) from you RAM memory:
gradle-wiper ram shallowTo wipe out all JVM processes from your RAM memory (including running IDEs):
gradle-wiper ram deepTo 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
buildoutput folders from any Gradle projects in your system
gradle-wiper disk shallowNOTE
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
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 deepTroubleshooting
All subcommands accept a verbose flag which outputs information about the current execution:
gradle-wiper disk evaluate --verboseIn addition, you also have the --help flag:
gradle-wiper --help
Reclaim machine resources (RAM, Disk) attached to Gradle builds
Usage: gradle-wiper <COMMAND>
Commands:
disk
ram
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version