Skip to content

1.1.0

Compare
Choose a tag to compare
@eriwen eriwen released this 30 Jan 14:39
· 109 commits to master since this release
511ec3d

Major completion speed improvements

For bash, reducing the amount of data being processed by compgen makes completion 2-20x faster depending on size of project (bigger gains for larger projects).

For zsh, manually managing the completion cache (instead of using zsh's built-in cache) makes completion 1.5-10x faster depending on the size of project (again, larger projects benefit more).

Completion should now occur under 200ms after initial caching for the vast majority of projects and environments. Please file an issue if you see otherwise with details of your build/environment.

Optional unqualified task completion

Gradle allows you to access tasks of subprojects from the project root implicitly. For example, given these tasks:

:foo
:help
:bar:baz

You can execute gradle baz from the project root and it will execute :bar:baz.

gradle-completion will not tab complete these tasks by default because it adds a significant number of completion options, which may not be what you want.

To allow completion of implicit tasks, export GRADLE_COMPLETION_UNQUALIFIED_TASKS=true.

Cache configuration options

2 new options here, see details in the README Configuration section.

  • You can now configure which build scripts from the cache UP-TO-DATE check, including turning it off completely using export GRADLE_COMPLETION_EXCLUDE_PATTERN="(build|integTest|samples)/"
    • By default, the build script cache is invalidated every 3 weeks to allow for new build scripts to affect the completion cache. You can configure this value by exporting a new value for $GRADLE_CACHE_TTL_MINUTES

gw (gdub) completion support

gradle-completion will now perform completions when you're using the gw command. Please note that completion from subprojects isn't supported yet (#3). Hoping that will be addressed in v1.2.0.