How to pass build.gradle directory to gradlew?

Solution 1:

Just found it from Appendix D. Gradle Command Line.

The answer is -p <your project directory>, which defaults to the current directory.