What is the difference between using gradlew
and gradle
or are they the same?
Gradle – Difference between using gradlew and gradle
gradlegradlew
Related Topic
- Android-studio – Gradle in Android Studio
- Android-studio – gradlew: Permission Denied
- Android – How to create a release signed apk file using Gradle
- Python – return variable outputs in Python function
- Python – Why does an assignment for double-sliced numpy arrays not work
- Find size of array without using sizeof
- Java – gradlew command not found
- Gradle – What’s the difference between implementation, api and compile in Gradle
Best Answer
The difference lies in the fact that
./gradlew
indicates you are using a gradle wrapper. The wrapper is generally part of a project and it facilitates installation of gradle. If you were using gradle without the wrapper you would have to manually install it - for example, on a macbrew install gradle
and then invoke gradle using thegradle
command. In both cases you are using gradle, but the former is more convenient and ensures version consistency across different machines.Read more here - https://docs.gradle.org/current/userguide/gradle_wrapper.html
Also, Udacity has a neat, high level video explaining the concept of the gradle wrapper - https://www.youtube.com/watch?v=1aA949H-shk