From f9104d155f618f2d6f5e13af648c81a5d036a592 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Sat, 11 Feb 2023 20:54:20 +0100 Subject: [PATCH] fix(gradle): move compdef line (#11488) --- plugins/gradle/_gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/gradle/_gradle b/plugins/gradle/_gradle index 1da5aebee..f8df928b4 100644 --- a/plugins/gradle/_gradle +++ b/plugins/gradle/_gradle @@ -1,3 +1,6 @@ +#compdef gradle gradlew gw +# THE LINE ABOVE MUST BE THE FIRST LINE OF THIS FILE IN ORDER FOR COMPLETION TO WORK + # # Taken from https://github.com/gradle/gradle-completion # Copyright (c) 2017 Eric Wendelin @@ -21,8 +24,6 @@ # SOFTWARE. # Terms -#compdef gradle gradlew gw - __gradle-set-project-root-dir() { local dir=`pwd` project_root_dir=`pwd`