Oh im just learning at the moment. Playing with some code using the detatched containers that i found somewhere, trying to understand how this particular API works, all with a migraine going on.
I asked the questions because in addition to methods like the
operatingSystem(), there are others we need to implement. Like we need a company specific reimplementation of
mavenCentral() for example that changes its output based on command line patterns (aka, which environment is the build happening on) and other helper methods. Are there other ways to accomplish the same thing, sure, i can put them all into some plugin apply method. But, the thinking is the builds will seem a lot less like voodoo if we do something like
rather than eliminate the whole block and move it into a plugin apply. Especially since every gradle tutorial out there says you should have that block. And thats also to say im not entirely sure how something ilke
would work as an apply method.
And again, this is one example. Its just one of those deals where it would be good to know how to register a first class citizen method in the DSL. It looks from the gradle code that its done with the java convention. But as of yet i haven’t found a way to initialize my own convention. Lots of moving parts there i don’t fully understand yet.