--build-file parameter is optional so the corresponding parameter should be optional as well.
Top-level build.gradle file may also not exist as shown in a minimal sample project referenced in test-no-root-buildfile workflow where there is settings.gradle and build.gradle in a subdirectory.
BTW groovy plugin is applied by default so there may be no buildfiles at all.
--build-file
parameter is optional so the corresponding parameter should be optional as well. Top-levelbuild.gradle
file may also not exist as shown in a minimal sample project referenced intest-no-root-buildfile
workflow where there issettings.gradle
andbuild.gradle
in a subdirectory.BTW
groovy
plugin is applied by default so there may be no buildfiles at all.