MovingBlocks

Unify new Groovy utility commands

So we have new Groovy utility commands now, yay! But it is becoming clear that a balance between maintainability, usability, and consistency is tricky.

While I previously had imagined a script per top level element (modules, libs, etc) plus one or more base/common script deeper in the directory tree like the Gradle files that may not be ideal after all. Each script would add another file in the root dir which is prone to bloating and any sort of reusability is going to add stuff you wouldn't need in a single script file.

So the goal of this script is to see about cramming all the work so far into a single util.groovy with as much reuse in utility methods as possible (reduce code overlap).

Instead of groovyw module get Sample you would have groovyw util module get Sample and instead of groovyw lib get CrashReporter you would have groovyw util lib get CrashReporter

Students who completed this task

Arpit Kamboj

Task type

  • code Code
close

2017