gradle / gradle-completion

Gradle tab completion for bash and zsh
MIT License
1.02k stars 131 forks source link

task completion fails with v7.5 samples (and a workaround) #118

Open errael opened 1 year ago

errael commented 1 year ago

The v7.5 samples do not have a build.gradle file in the root project directory. Completion's __gradle-set-build-file() depends primarily on finding that file in the root project dir.

In the root, doing

$ touch build.gradle

which creates an empty build.gradle file, got completion to start working.

BTW, trying

rootProject.buildFileName = 'lib/build.gradle'

Fails with Multiple projects in this build have build file