2 ms·
Gradle is declarative. The 'code' you write does not conduct the build; it assembles an object graph which describes the build, much like the one you get from p
by twic 3y ago
Gradle is declarative. The 'code' you write does not conduct the build; it assembles an object graph which describes the build, much like the one you get from parsing the Maven XML. The advantage of using code for this is that you the description can be more concise, expressive, etc. But once it's run, the graph is built, and you can explore that, list dependencies, etc, quite safely.
- grumpyprole 3y ago> Gradle is declarative Gradles own docs say "Well-designed build scripts consist mostly of declarative configuration rather than imperative logic". When it's up to the programmer to make a script declarative, it's not a declarative language.