blob: 0f89ad0ca65253bc4e4366d06dcbcd3115878455 [file] [log] [blame] [view]
# Unused Deps
unused_deps is a command line tool to determine any unused dependencies
in [java_library](https://docs.bazel.build/versions/main/be/java.html#java_library)
rules. targets. It outputs `buildozer` commands to apply the suggested
prunings.
## Installation
Build a binary and put it into your $GOPATH/bin:
```bash
go install github.com/bazelbuild/buildtools/unused_deps@latest
```
## Usage
```shell
unused_deps TARGET...
```
Here, `TARGET` is a space-separated list of Bazel labels, with support for `:all` and `...`