Learning Gradle

Ok, Gradle. I know you guys are really proud of yourselves, but do you have to be so dang leaky with your abstractions? Is it really crucial that we know that script blocks are secretly method calls that take *closures* as parameters? Can’t you just say “script blocks” and be done with it?

Also… “configures the dependency configurations”? Seriously? You know “configure” is ALREADY a nebulous word, right? You had to configure the configurations?

«A script block is a method call which takes a closure as a parameter. The closure is treated as a configuration closure which configures some delegate object as it executes. The top level script blocks are listed below.

….

configurations { } — Configures the dependency configurations for this project.

dependencies { } — Configures the dependencies for this project.»

(From https://docs.gradle.org/current/dsl/index.html.)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.