1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-30 08:11:58 +00:00
Commit graph

6 commits

Author SHA1 Message Date
Bartek Pacia
f9104d155f
fix(gradle): move compdef line (#11488) 2023-02-11 20:54:20 +01:00
Bartek Pacia
0e9e5360c4
feat(gradle): update completion from upstream (#11485) 2023-02-09 12:24:39 +01:00
Marc Cornellà
b93b67b844
fix(gradle): remove deprecated use of egrep (#11160) 2022-10-03 17:11:52 +02:00
Konstantin Gribov
999d22bb0e
gradle: force --console plain for tasks cache generation (#8731)
Fixes #8730
2020-07-01 15:20:41 +02:00
Marc Cornellà
e1a8d7c977 gradle: use upstream completion and fix some other stuff
Fixes #6239
Fixes #7946
Fixes #8017
Fixes #8717
Closes #7987
Closes #8718
2020-03-09 18:43:20 +01:00
Erik Zivkovic
e46843685c Improve gradle plugin task parsing (#5230)
* Improve gradle plugin task parsing

Added _gradle and _gradlew as symbolic links to gradle.plugin.zsh,
otherwise the plugin was not properly loaded.

Output from `gradlew tasks --all` is now parsed in two levels,
first we find segments between `------...` and a newline.
Second, all those lines are parsed and cleaned using awk
and added to .gradletasknamecache.

Tested on gradle 2.13, and gradlew 2.14.

* Remove .gradletasknamecache before regenerating it

Remove the .gradletasknamecache file to avoid having an unnecessary
newline at the top of the file when regenerating it.

* Improve gradle task parsing by writing .gradletasknamecache atomically

Previously the .gradletasknamecache file was written line by line inside a parsing loop,
which could cause errors such as half-written cache files if the process was aborted.

This also removes the need of deleting the .gradletasknamecache file before parsing.
2016-09-15 12:16:46 +02:00