Incremental build means small changes normally result in a very fast build, helping developers get more work done. For example, if you modify a test class, Gradle doesn’t need to recompile your production code. Gradle has an awesome feature called incremental build which means if you change something in your project and run a build, it only runs the necessary tasks based on that change. 🧹Īnd is sometimes accompanied by general complaints about how slow the build is. If there’s one way to guarantee you’ll waste tonnes of time, it’s to run a clean every time you do a build. Keep the Gradle elephant happy and always use the wrapper! 2. gradlew in Linux or gradlew.bat in Windows, then you can’t go wrong. Just remember to always execute a build with. If you don’t currently have the wrapper in your project, you can add it by running gradle wrapper. you always use the version of Gradle supported by the project.you don’t need Gradle installed locally to run your build.This sounds simple, but it has 3 big advantages. The wrapper is a special script included in your project which handles downloading the correct Gradle version and executing a build.