Introducing string-based switch à la Java 7

Introducing Java 7's switch on strings only partially solves the problem - but it definitely seems to foster readability.
Such a language construct consequently demanded a change to Gradle's build script.