Make your build.gradle great again
Sergii Zhuk

Several more tips to add:

  • make possible enable/disable of the tests

tasks.compileTestJava.onlyIf { useTdd }
test.onlyIf { useTdd }

  • Keep all dependencies in sync, all sub-modules should stay on the same version of the library (This greatly reduce the load on IDE and navigation in source code)
  • Use latest gradle version (3.1 just release btw, great speed improvement)
  • Increase the Memory reserved for Gradle (in process compilation is goes much faster)
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.