gradle vs. gradlew - what's the difference?

One of the most common questions for anyone using Gradle is what’s the difference between gradle vs. gradlew. Each is a Gradle command with a particular use case in mind. Here you’ll learn what each command does, and when to use one over the other. Quick summary If you’re working in a project that has a gradlew script, always use it. If it doesn’t, use the gradle command to generate it....

February 6, 2021 · 4 min read · Tom Gregory

How to update Gradle

Using the Gradle wrapper means that a project can be fixed to a specific version of Gradle. If you want to update Gradle to a newer version though, follow the simple steps in this article. What’s my current Gradle version? Assuming your project is using the Gradle wrapper, which it most likely is, run ./gradlew --version: $ ./gradlew --version ------------------------------------------------------------ Gradle 6.4.1 ------------------------------------------------------------ Build time: 2020-05-15 19:43:40 UTC Revision: 1a04183c502614b5c80e33d603074e0b4a2777c5 Kotlin: 1....

June 17, 2020 · 3 min read · Tom Gregory

What's the Gradle Wrapper and Why Use it?

The Gradle wrapper is a script you add to your Gradle project and use to execute your build. The advantages are: you don’t need to have Gradle installed on your machine to build the project the wrapper guarantees you’ll be using the version of Gradle required by the project you can easily update the project to a newer version of Gradle, and push those changes to version control so other team members use the newer version Now you’ve got a flavour of what the Gradle wrapper is all about, let’s run through some common use cases....

March 14, 2020 · 7 min read · Tom Gregory