Browse Source

fix(gradle): remove look for settings.gradle files (#11917)

Piotr Minkina 7 months ago
parent
commit
d3b6f1fd5e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/gradle/gradle.plugin.zsh

+ 1 - 1
plugins/gradle/gradle.plugin.zsh

@@ -6,7 +6,7 @@ function gradle-or-gradlew() {
   # taken from https://github.com/gradle/gradle-completion
   local dir="$PWD" project_root="$PWD"
   while [[ "$dir" != / ]]; do
-    if [[ -f "$dir/settings.gradle" || -f "$dir/settings.gradle.kts" || -f "$dir/gradlew" ]]; then
+    if [[ -x "$dir/gradlew" ]]; then
       project_root="$dir"
       break
     fi