


if the last parameter is a closure (for now think lambda), it can be written outside the parentheses:.there’s no need for parentheses when calling methods with at least one parameter (if it’s unambiguous):.Syntax is easy to grasp if you know Java, and for us it’s important that: Gradle files are basically Groovy scripts. In this post we’ll write, step by step, Gradle configuration files for a single Android project in order to take some of the magic away. Anything more complicated than that, and we end up copy-pasting mysterious snippets from Stack Overflow, without understanding how they work.

For most purposes we don’t need to modify our *.gradle files much we add dependencies, modify target and minimum API levels, maybe set up signing configs and build types.
