LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gradle-clean

Gradle build artifact removal task

TLDR

Clean build directory
$ gradle clean
copy
Clean specific module
$ gradle :module:clean
copy
Clean and build
$ gradle clean build
copy

SYNOPSIS

gradle clean [options]

DESCRIPTION

gradle clean deletes the project build directory (the path set by `layout.buildDirectory`, by default `build/`) and everything in it. It removes compiled classes, packaged artifacts, and cached build output, ensuring a fresh build environment.The task is provided by Gradle's base plugin, which is applied by the Java, Application, and most other language plugins. It is useful when builds become inconsistent or caches are corrupted, forcing a complete rebuild on the next invocation.

PARAMETERS

cleanTaskName

Task rule that deletes only the outputs of a named task, e.g. `cleanJar` removes the JAR produced by the `jar` task.
--info
Info logging.
--help
Display help information.

INSTALL

sudo pacman -S gradle
copy
sudo apk add gradle
copy
brew install gradle
copy
nix profile install nixpkgs#gradle
copy

CAVEATS

Removes all build output. Next build will be full rebuild. Doesn't clean dependencies.

HISTORY

The clean task is a standard Gradle lifecycle task for build artifact removal.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid