Bash and Zsh tab completion for Gradle tasks, CLI switches, and properties with fast caching.
gradle-completion is a shell completion script that provides intelligent tab completion for Gradle build tool commands. It helps developers quickly discover and execute Gradle tasks, command-line switches, and properties without memorizing complex syntax or navigating documentation. The tool caches project task information to provide near-instant completions even for large multi-project builds.
Developers who regularly use Gradle for building Java, Kotlin, or other JVM-based projects and work in Bash or Zsh shells. Particularly valuable for those working with complex multi-project builds where remembering task names and options is challenging.
Developers choose gradle-completion because it's officially maintained by the Gradle team, offers significantly faster completion than built-in alternatives, stays current with Gradle's CLI options, and provides extensive configuration options for optimizing performance in different project environments.
Gradle tab completion for bash and zsh
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses intelligent caching that's ~20x faster for medium to large projects, providing instant completions as emphasized in the README.
Completes Gradle command-line switches and common properties, staying current with Gradle's evolving CLI options up to version 9.2.0.
Supports task completion for current and sub-projects, which is essential for complex multi-project builds, unlike basic alternatives.
Allows configuration like excluding build scripts from cache checks and enabling implicit task completion, offering tailored performance tuning.
On macOS, installation requires bash-completion framework and proper shell profile configuration, which is error-prone and documented as a common troubleshooting issue.
The cache doesn't automatically detect new build scripts, and changes require manual invalidation, potentially leading to outdated completions in dynamic projects.
Requires Zsh 5.0.8 or higher to avoid parsing bugs, and macOS's default Bash 3.2 is problematic, forcing users to upgrade or install newer versions.
Completion scripts are generated for specific Gradle versions, so using a different version might result in incomplete or incorrect suggestions, as admitted in the versioning notes.