🛠️Gradle
Also known as Gradle Build Tool, gradlew, build.gradle
A free build tool for Java, Kotlin and Android. Its recipe file is code.
Think of it like
It is like a recipe card you can add your own steps to.
Example
Jack builds an Android app. He types ./gradlew build, and Gradle compiles the app, runs the tests and makes the app file.
Definition
Example code
console
$ ./gradlew build
BUILD SUCCESSFULCommon mistake
Key takeaways
- 1Code as recipe. The build file is Kotlin or Groovy.
- 2Skip done work. Unchanged steps are not run again.
- 3Use the wrapper. gradlew picks the right version.